Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
11895 Переглядів

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
1447
1
черв. 22
2477
1
груд. 23
2574
3
лист. 23
1598
2
серп. 23
2268