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

how to build target from source And your example can't run as error below #22

Open
chenxuezhou opened this issue Jun 1, 2018 · 4 comments

Comments

@chenxuezhou
Copy link

fisheyegl.js:176 Uncaught DOMException: Failed to execute 'texImage2D' on 'WebGLRenderingContext': The image element contains cross-origin data, and may not be loaded.

@jywarren
Copy link
Owner

jywarren commented Jun 3, 2018

Hi! Hm, i believe this is because you're pointing it at an image with a different origin hostname than where it's being run. Are you using the github demo?

https://jywarren.github.io/fisheyegl/example/

https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS

@chenxuezhou
Copy link
Author

can run on my computer?

@jywarren
Copy link
Owner

jywarren commented Jun 15, 2018 via email

@jywarren
Copy link
Owner

Ah - the cross-origin data thing -- locally that can be a problem. So if you have Python, you can start a local server with python -m SimpleHTTPServer 8000 in the commandline/terminal, and go to http://localhost:8000/examples/ and it will work! If you have JavaScript there is a similar one-line server command i can look up for you?

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

2 participants