javascript - "Cross origin requests are only supported for HTTP." error when loading a local file -
i'm trying load 3d model three.js jsonloader
, , 3d model in same directory entire website.
i'm getting "cross origin requests supported http."
error, don't know what's causing nor how fix it.
my crystal ball says loading model using either file://
or c:/
, stays true error message not http://
so can either install webserver in local pc or upload model somewhere else , use jsonp
, change url http://example.com/path/to/model
Comments
Post a Comment