Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
12277 Visualizzazioni

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
Abbandona
Autore Risposta migliore

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
lug 22
1585
1
giu 22
2648
1
dic 23
2861
3
nov 23
1881
2
ago 23
2505