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

跨域问题 #7

Open
wowadz opened this issue Nov 24, 2021 · 1 comment
Open

跨域问题 #7

wowadz opened this issue Nov 24, 2021 · 1 comment
Labels

Comments

@wowadz
Copy link

wowadz commented Nov 24, 2021

Access to XMLHttpRequest at 'https://xxx.tencentcs.com/release/danmaku/v3/' from origin 'https://xxx.net' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
api.js:12 Error: Network Error
at e.exports (createError.js:4)
at XMLHttpRequest.y.onerror (xhr.js:53)
(匿名) @ api.js:12
Promise.catch(异步)
send @ api.js:11
value @ danmaku.js:135
value @ comment.js:112
(匿名) @ comment.js:53
xhr.js:111 POST https://xxx.tencentcs.com/release/danmaku/v3/ net::ERR_FAILED

@TennousuAthena
Copy link
Owner

Simple solution:
image

Enable CORS in Cloud API settings

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

No branches or pull requests

2 participants