yize / xswitch

A Chrome Extension for redirecting/forwarding request urls
https://chrome.google.com/webstore/detail/xswitch/idkjhjggpffolpidfkikidcokdkdaogg
MIT License
992 stars 121 forks source link

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

Open Zohar727 opened 4 years ago

Zohar727 commented 4 years ago

"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.