您的位置 首页 php

Ajax跨域服务端php处理

在方法内补上
 header ('content-type:application: json ;charset=utf8');
header('Access-Control-Allow-Origin:*');
header('Access-Control-Allow-Methods:POST');
header('Access-Control-Allow-Headers:x-requested-with,content-type');
 

文章来源:智云一二三科技

文章标题:Ajax跨域服务端php处理

文章地址:https://www.zhihuclub.com/150999.shtml

关于作者: 智云科技

热门文章

网站地图