我需要一种方法来包含一个 http 服务器
I need a way to include a http-server
我正在使用 Framework7 开发一个 apk 网站,我遇到了跨源错误。 XMLHttpRequest 无法加载
这是我遇到的错误。
XMLHttpRequest cannot load file:///C:/xxx/start.html. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource. on framework7.min.js:21
对不起我的英语。
发生此错误是因为您直接从浏览器打开 html
文档。要解决此问题,您需要将代码提供给网络服务器并在本地主机上访问它。
因此您可以在本地 PC 上安装网络服务器或将模型上传到其他地方并将 URL 更改为 http://example.com/path/to/model
我正在使用 Framework7 开发一个 apk 网站,我遇到了跨源错误。 XMLHttpRequest 无法加载
这是我遇到的错误。
XMLHttpRequest cannot load file:///C:/xxx/start.html. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource. on framework7.min.js:21
对不起我的英语。
发生此错误是因为您直接从浏览器打开 html
文档。要解决此问题,您需要将代码提供给网络服务器并在本地主机上访问它。
因此您可以在本地 PC 上安装网络服务器或将模型上传到其他地方并将 URL 更改为 http://example.com/path/to/model