Skip to Content
मेन्यू
This question has been flagged
1 Reply
11898 Views

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
Discard
Author Best Answer

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

Avatar
Discard
Related Posts Replies Views Activity
0
जुल॰ 22
1447
1
जून 22
2479
1
दिस॰ 23
2578
3
नव॰ 23
1604
2
अग॰ 23
2269