#CORS Policy blocks GLTF Loader

8 messages · Page 1 of 1 (latest)

zinc quiver
#

I'm not good as server setting and just learning ThreeJS this month, I've got an error message after upload to my own server, seem like a "Access-Control-Allow-Origin" problem, I try search this from google, but still no idea

run in localhost is working fine, I can load my 3D model.

zinc quiver
#

this is load correctly in localhost

#

when I change the glb in Absolute Path, I can load the 3d model on server, but it cannot load in localhost

plain glen
#

CORS basically block Browser from loading files from different http address

#

You need to host your model in the same host as your index and js file

zinc quiver
#

Yes, all files and the 3D models under same host domain, just inside different folder.

honest shore
#

@zinc quiver Could you me the live URL?