Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Zohar727 opened this issue Apr 14, 2020 · 0 comments
Open

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

Zohar727 opened this issue Apr 14, 2020 · 0 comments

Comments

@Zohar727
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant