如何解决服务单请求跨域问题

// 指定允许其他域名访问
header('Access-Control-Allow-Origin:*');
// 响应类型
header('Access-Control-Allow-Methods:POST');
// 响应头设置
header('Access-Control-Allow-Headers:x-requested-with,content-type');

posted @ 2017-06-20 16:42  码猿人  阅读(156)  评论(0编辑  收藏  举报