index.html:41 XMLHttpRequest cannot load file:///E:/myproject/datas/index.txt. Cross origin requests
来源:互联网 发布:mac机中钉钉无法登陆 编辑:程序博客网 时间:2024/05/01 22:35
今天用vscode 编辑器view in browser ,出现ajax请求错误
index.html:41 XMLHttpRequest cannot load file:///E:/myproject/datas/index.txt. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.
原因:因为这里使用的是file协议,跨起源请求只支持协议方案:HTTP,数据,Chrome,Chrome扩展,HTTPS,Chrome扩展资源
0 0
- index.html:41 XMLHttpRequest cannot load file:///E:/myproject/datas/index.txt. Cross origin requests
- 关于JSON(跨域):XMLHttpRequest cannot load file:///E:/static/cartData.json. Cross origin requests..
- XMLHttpRequest cannot load file://app.json. Cross origin requests are only supported for HTTP.
- XMLHttpRequest cannot load file:///xx.Cross origin requests are only supported for protocol schemes.
- XMLHttpRequest cannot load file. Cross origin requests are only supported for HTTP angularjs
- 关于XMLHttpRequest cannot load xxx . Cross origin requests are only supported for protocol schemes...
- XMLHttpRequest cannot load"url"Cross origin requests are only supported. send@jquery-2.1.4.js:8630
- 关于XMLHttpRequest cannot load xxx . Cross origin requests are only supported for protocol schemes...
- XMLHttpRequest cannot load:...Cross origin requests are only supported for...问题的解决之路(bug描述太长)
- XMLHttpRequest cannot load file:///D
- 如何解决XMLHttpRequest cannot load file~~~~~~~Origin 'null' is therefore not allowed access
- 如何解决XMLHttpRequest cannot load file~~~~~~~Origin 'null' is therefore not allowed access
- 如何解决XMLHttpRequest cannot load file~~~~~~~Origin 'null' is therefore not allowed access
- 问题:XMLHttpRequest cannot load file~~Origin 'null' is therefore not allowed access
- 如何解决XMLHttpRequest cannot load file~~~~~~~Origin 'null' is therefore not allowed access
- 如何解决XMLHttpRequest cannot load file~~~~~~~Origin 'null' is therefore not allowed access
- 如何解决XMLHttpRequest cannot load file~~~~~~~Origin 'null' is therefore not allowed access
- cross-origin requests descripetion
- Codeforces Beta Round #1 A,B,C
- 夕拾算法进阶篇:37)二分答案
- yii2 直接输出model的(active record)sql语句
- linux 修改时间
- Android中IPC的几种方式详细分析与优缺点分析
- index.html:41 XMLHttpRequest cannot load file:///E:/myproject/datas/index.txt. Cross origin requests
- python-django-----mac终端常用命令
- 回文串
- 20170315
- Python3 cookbook学习笔记-数据结构与算法1
- 字符大小转化
- PHP empty函数测试对象使用魔术方法获取的属性
- android 绘制圆形的ImageView
- 网速前端计算&系统探测