xswitch icon indicating copy to clipboard operation
xswitch copied to clipboard

测试了下baidu.com跨域失败 请问是我配置不对吗?

Open Zohar727 opened this issue 5 years ago • 0 comments

"cors": [ "www.baidu.com" ]

fetch('http://www.baidu.com')

Access to fetch at 'http://www.baidu.com/' from origin 'http://172.20.155.22' 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.

Zohar727 avatar Apr 14 '20 09:04 Zohar727