$web = request()->header('Origin');
//跨域请求设置
header("Access-Control-Request-Method:GET,POST");
header("Access-Control-Allow-Credentials:true");
header("Access-Control-Allow-Origin:".$web);
header("Access-Control-Allow-Headers:token,Content-Type, Authorization, Accept, Range, Origin,Token,Lang,lang");
tp6 跨域
最新推荐文章于 2024-09-11 10:10:47 发布