服务器端解决跨域

header('Access-Control-Allow-Origin:http://www.baidu.com');
原文地址:https://www.cnblogs.com/zuikeol/p/10281148.html