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

gl.texImage2D Error #3522

Open
chenfeng345 opened this issue Sep 15, 2017 · 1 comment
Open

gl.texImage2D Error #3522

chenfeng345 opened this issue Sep 15, 2017 · 1 comment

Comments

@chenfeng345
Copy link

cocos H5 跨域访问不到图片 gl.texImage2D报错!

@chenfeng345
Copy link
Author

Access to Image at 'http://www.qqzhuangban.com/uploadfile/2014/06/1/20140619085003170.jpg' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.

Log.js:20 SecurityError: Failed to execute 'texImage2D' on 'WebGLRenderingContext': The cross-origin image at http://www.qqzhuangban.com/uploadfile/2014/06/1/20140619085003170.jpg may not be loaded.

@chenfeng345 chenfeng345 changed the title texImage2D gl.texImage2D Error Sep 15, 2017
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