Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
11862 Представления

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!

Аватар
Отменить
Автор Лучший ответ

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
июл. 22
1441
1
июн. 22
2459
1
дек. 23
2553
3
нояб. 23
1579
2
авг. 23
2252