Access-Control-Allow-Origin解决Ajax跨域问题
Access-Control-Allow-Origin 解决ajax跨域的处理办法:1.请求的url是PHP的,须要PHP中增加:
header(""Access-Control-Allow-Origin: *"");
2.html的,须要
<meta http-equiv="Access-Control-Allow-Origin" content="*">
3.asp和asp.net的写法
Response.AddHeader("Access-Control-Allow-Origin", "*");