No 'Access-Control-Allow-Origin' header is present on the requested resource.'Ajax跨域访问解决方案

设置谷歌浏览器:

1. 新建一个谷歌快捷键
2. 点击快捷键属性,找到“快捷方式”的目标
3. 在“目标”后面添加:--allow-file-access-from-files --disable-web-security --user-data-dir="c:/kayu"
4. 在“c:/kayu”目录下添加一个kayu.txt的空文件夹即可
5. 使用新建的快捷键访问网址

原文地址:https://www.cnblogs.com/momoweiduan/p/14647417.html