跨域问题

header("Access-Control-Allow-Origin: 域名");
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");
header('Access-Control-Allow-Methods: GET, POST, PUT');

ps:在返回的方法中添加上面内容
域名:http://vue.hxq.mytg.com
posted @ 2018-07-24 15:56  pengcx  阅读(86)  评论(0编辑  收藏  举报