我的crystal ball说您正在使用
file://或加载模型
C:/,这对错误消息保持正确,因为它们不是
http://
因此,您既可以在本地PC上安装Web服务器,也可以将模型上传到其他地方,然后使用
jsonp并将URL更改为
http://example.com/path/to/model
起源在RFC-6454中定义为
...they have the same scheme, host, and port. (See Section 4 for full details.)
因此,即使您的文件来自同一主机(
localhost),但是只要方案不同(
http/
file),它们都将被视为不同的来源。



