php设置允许跨域

设置请求头消息如下:

header('Access-Control-Allow-Origin:*');
header("Access-Control-Allow-Headers:Origin, X-Requested-With, Content-Type, Accept");

posted @ 2019-02-26 15:34  你丫才美工  阅读(1081)  评论(0编辑  收藏  举报