Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
11888 มุมมอง

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
1445
1
มิ.ย. 22
2474
1
ธ.ค. 23
2570
3
พ.ย. 23
1591
2
ส.ค. 23
2265