Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
11906 Ansichten

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!

Avatar
Verwerfen
Autor Beste Antwort

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

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Juli 22
1448
1
Juni 22
2486
1
Dez. 23
2583
3
Nov. 23
1608
2
Aug. 23
2274