5 ms·
When I download the source and try to open index.html in Chrome, it doesn't work. "Unhandled promise rejection DOMException: Failed to execute 'texImage2D' on
by strayptr 11y ago
When I download the source and try to open index.html in Chrome, it doesn't work.
"Unhandled promise rejection DOMException: Failed to execute 'texImage2D' on 'WebGLRenderingContext': Tainted canvases may not be loaded."
Does anyone know how to get it working? Thanks!
- Fastidious 11y agoYou need to run it from a web server. Open a shell on the root directory and run `python -m SimpleHTTPServer 8888` on it. Browse to `localhost` on 8888.
- lectrick 11y agoWhy wouldn't (or shouldn't) one be able to make it run standalone?
- Fastidious 11y agoI think it relates to the JavaScript used, and limitations imposed by the web browser.
- shitloadofbooks 11y agoIt's to do with the browser security model and JavaScript restrictions on file:// paths. I'm not entirely sure of the class of attack that it prevents, but it's been that way for quite a while now.
- scott_karana 11y agoFor a while, browsers allowed unfettered Javascript access to local files, so malware sites would just get users to save the site, and run it. Tada, access to local files, or unlimited XHR requests for DDoSing, etc. :-)
- strayptr 11y agoThanks, that worked.