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 issues #1

Open
miquael opened this issue Dec 7, 2016 · 1 comment
Open

Cross origin issues #1

miquael opened this issue Dec 7, 2016 · 1 comment

Comments

@miquael
Copy link

miquael commented Dec 7, 2016

Getting 2 cross origin request issues when running this locally:

three.min.js:386 XMLHttpRequest cannot load file:///Users/mac/_DEV/_LAB/threejs-animation-workflow/textures/ground.png. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.

three.min.js:386 XMLHttpRequest cannot load file:///Users/mac/_DEV/_LAB/threejs-animation-workflow/models/eva-animated.json. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.

@dcoollx
Copy link

dcoollx commented Mar 21, 2017

This is a common issue with threejs. Modern day browsers block scripts from accessing local files as a security features. The two ways to fix it are to host all files on a web server. Or launch chrome from cmd with the --allow-file-acess-from-files flag. The latter is somewhat dangerous tho

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