Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
11876 Widoki

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!

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
lip 22
1443
1
cze 22
2470
1
gru 23
2563
3
lis 23
1583
2
sie 23
2260