mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]增加接口测试类
This commit is contained in:
parent
0ab17be394
commit
587fc42105
@ -28,7 +28,7 @@ class ToolsService {
|
||||
public static function corsOptionsHandler() {
|
||||
if (request()->isOptions()) {
|
||||
header('Access-Control-Allow-Origin:*');
|
||||
header('Access-Control-Allow-Headers:Accept,Referer,Host,Keep-Alive,User-Agent,X-Requested-With,Cache-Control,Content-Type,token');
|
||||
header('Access-Control-Allow-Headers:Accept,Referer,Host,Keep-Alive,User-Agent,X-Requested-With,Cache-Control,Content-Type,Cookie,token');
|
||||
header('Access-Control-Allow-Credentials:true');
|
||||
header('Access-Control-Allow-Methods:GET,POST,OPTIONS');
|
||||
header('Access-Control-Max-Age:1728000');
|
||||
|
Loading…
x
Reference in New Issue
Block a user