[更新]增加接口测试类

This commit is contained in:
Anyon 2017-04-26 17:17:25 +08:00
parent 0ab17be394
commit 587fc42105

View File

@ -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');