从后端解决跨域问题

在入口文件index.php中添加

header('Access-Control-Allow-Headers:x-requested-with,content-type');
header('Access-Control-Allow-Origin:http://localhost:8888');
posted @ 2020-01-17 15:38  山根花理  阅读(131)  评论(0)    收藏  举报