- // 指定允许其他域名访问
- header('Access-Control-Allow-Origin:*');
- // 响应类型
- header('Access-Control-Allow-Methods:POST');
- // 响应头设置
- header('Access-Control-Allow-Headers:x-requested-with,content-type');
php设置允许跨域
猜你喜欢
转载自blog.csdn.net/m0_37477061/article/details/80766444
今日推荐
周排行