标签:
1. <meta http-equiv="Access-Control-Allow-Origin" content="*">
说明一下什么情况下我们用到这个标签:如果chrome浏览器报
XMLHttpRequest cannot load http://google.com/. No ‘Access-Control-Allow-Origin‘ header is present on the requested resource. Origin ‘http://run.jsbin.io‘ is therefore not allowed access.
在html页面加入:
<meta http-equiv="Access-Control-Allow-Origin" content="*">
标签:
原文地址:http://www.cnblogs.com/shibazizhan/p/5131297.html