Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
11865 Lượt xem

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!

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 7 22
1442
1
thg 6 22
2461
1
thg 12 23
2554
3
thg 11 23
1581
2
thg 8 23
2255