浏览器调试出错

来源:互联网 发布:重复文件 知乎 编辑:程序博客网 时间:2024/06/06 12:47

在chrome里面调试时出现如下错误:XMLHttpRequest cannot load file:///E:/SublimeTest/zhuliukuangjia06/moviecat/app/in_theaters/view.html. Cross origin requests are only supported for protocol schemes: http, data,chrome, chrome-extension, https.

原因:chrome浏览器只能在http服务器端打开页面,不要在本地直接打开页面。可以换用火狐浏览器在本地打开。

原创粉丝点击