Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
11854 Tampilan

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
Buang
Penulis Jawaban Terbai

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

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
0
Jul 22
1441
1
Jun 22
2456
1
Des 23
2550
3
Nov 23
1578
2
Agu 23
2249