Chrome中的"Access-Control-Allow-Origin不允许使用null原点".为什么? [英] “Origin null is not allowed by Access-Control-Allow-Origin” in Chrome. Why?

查看:122
本文介绍了Chrome中的"Access-Control-Allow-Origin不允许使用null原点".为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Chrome中的"Access-Control-Allow-Origin不允许使用null原点".为什么?
我在Google上搜索了很多,以获得解决方案,但无法实施该解决方案.

请帮助我.

"Origin null is not allowed by Access-Control-Allow-Origin" in Chrome. Why?
i googled a lot to get a solution for that,but unable to implement the solution.

plz help me. how to implement --allow-file-access-from-files in chrome?

推荐答案

运行Chrome实例并查看:
Run your Chrome instance with and see:
chrome.exe --allow-file-access-from-files



或尝试将其放在您的文件中:



Or try putting this is your file:

<meta http-equiv="Access-Control-Allow-Origin" content="*"> 


这篇关于Chrome中的"Access-Control-Allow-Origin不允许使用null原点".为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆