問題タブ [spring-boot-2]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
spring-boot - application.properties の web.cors.allowed-origins が特定の URL の CORS を許可していない
「 http://localhost/4200 」のアプリ全体で CORS を有効にしようとしています。私はSpringboot 2とaccordを使用しているので。そのドキュメントに、このプロパティを application.properties ファイルに追加するだけです:
しかし、これはうまくいきません。次に、テスト目的で、restController を介して作成しているリクエストがあるため、インラインを追加しようとしました。
これにより、4401 ポートを介したデータの流れも可能になりました。