Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
11870 Visninger

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
Kassér
Forfatter Bedste svar

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

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
0
jul. 22
1443
1
jun. 22
2466
1
dec. 23
2559
3
nov. 23
1582
2
aug. 23
2257