Compare commits

...

2 Commits

Author SHA1 Message Date
weiz 49ee3ee3e8 Merge pull request '跨域处理' (#12) from zhangwei into dev
Reviewed-on: #12
2023-10-10 15:03:48 +08:00
unknown bff0970b99 跨域处理 2023-10-10 15:03:12 +08:00
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class LikeAdminAllowMiddleware
public function handle($request, Closure $next, ?array $header = []) public function handle($request, Closure $next, ?array $header = [])
{ {
header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Origin: *');
header("Access-Control-Allow-Headers: Authorization, Sec-Fetch-Mode, DNT, X-Mx-ReqToken, Keep-Alive, User-Agent, If-Match, If-None-Match, If-Unmodified-Since, X-Requested-With, If-Modified-Since, Cache-Control, Content-Type, Accept-Language, Origin, Accept-Encoding,Access-Token,token,version"); header("Access-Control-Allow-Headers: Authorization, Sec-Fetch-Mode, DNT, X-Mx-ReqToken, Keep-Alive, User-Agent, If-Match, If-None-Match, If-Unmodified-Since, X-Requested-With, If-Modified-Since, Cache-Control, Content-Type, Accept-Language, Origin, Accept-Encoding,Access-Token,token,version,appid,url,timestamp,sign");
header('Access-Control-Allow-Methods: GET, POST, PATCH, PUT, DELETE, post'); header('Access-Control-Allow-Methods: GET, POST, PATCH, PUT, DELETE, post');
header('Access-Control-Max-Age: 1728000'); header('Access-Control-Max-Age: 1728000');
header('Access-Control-Allow-Credentials:true'); header('Access-Control-Allow-Credentials:true');