Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
11801 Vues

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
Ignorer
Auteur Meilleure réponse

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

Avatar
Ignorer
Publications associées Réponses Vues Activité
0
juil. 22
1401
1
juin 22
2402
1
déc. 23
2423
3
nov. 23
1508
2
août 23
2204