php跨域header设置

mac2022-07-01  17

//设置utf8 header("Content-Type: text/html; charset=UTF-8"); // 指定允许其他域名访问 header('Access-Control-Allow-Origin:*');// 响应类型 header('Access-Control-Allow-Methods:POST');// 响应头设置 header('Access-Control-Allow-Headers:x-requested-with,content-type');

转载于:https://www.cnblogs.com/yangchong/p/6362354.html

最新回复(0)