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

Cross Origin with textures #5

Open
phomea opened this issue Feb 22, 2019 · 0 comments
Open

Cross Origin with textures #5

phomea opened this issue Feb 22, 2019 · 0 comments

Comments

@phomea
Copy link

phomea commented Feb 22, 2019

Hello @dwqdaiwenqi ,
I really appreciate this repo, actually we are developing an electron / react app, and we need a simple 3d view inside of it.
I tried your repo and this is exactly what we need.
We have some troubles loading the texture file though, because we are taking it from a web server and THREE is giving us a cross-origin error

"THREE.WebGLState: DOMException: Failed to execute 'texImage2D' on 'WebGLRenderingContext': The image element contains cross-origin data, and may not be loaded"

On the server we have all the response headers for CORS

image

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