且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

"跨起源请求仅支持HTTP&QUOT。错误加载本地文件时,

更新时间:2021-08-30 08:15:03

我的水晶球说,你正在使用文件加载模型:// C:/ ,它保持真实的错误消息,因为它们不是的http://

My crystal ball says that you are loading the model using either file:// or C:/, which stays true to the error message as they are not http://

所以,你可以安装一个Web服务器在本地PC或上传的模式在其他地方,并使用 JSONP 并更改网址 HTTP:/ /example.com/path/to/model

So you can either install a webserver in your local PC or upload the model somewhere else and use jsonp and change the url to http://example.com/path/to/model