コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
11823 ビュー

I am getting error shown below:

Access to fetch at 'http://my-domain.com' from origin 'http://127.0.0.1:5502' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Any idea where I can add CORS to allow every host so I will never see that error again!

アバター
破棄
著作者 最善の回答

I solved this by adding cors="*" to the controller of web module at the file function which showing cors error!

アバター
破棄
関連投稿 返信 ビュー 活動
0
7月 22
1427
1
6月 22
2410
1
12月 23
2473
3
11月 23
1536
2
8月 23
2226