php 解决跨域问题

header('Access-Control-Allow-Origin:*');
header('Access-Control-Allow-Methods:POST,GET,OPTIONS');
header('Access-Control-Allow-Headers:x-requested-with,content-type,requesttype,token');
原文地址:https://www.cnblogs.com/daochong/p/10072547.html