允许跨域

header("Access-Control-Allow-Origin: *");
原文地址:https://www.cnblogs.com/xiaobiaomei/p/8535215.html