更新 apiAdmin.php

提升跨域支持
This commit is contained in:
Zhao 2019-04-16 14:58:12 +08:00
parent ff7f878fd6
commit 295d135b5e

View File

@ -29,7 +29,7 @@ return [
'CROSS_DOMAIN' => [ 'CROSS_DOMAIN' => [
'Access-Control-Allow-Origin' => '*', 'Access-Control-Allow-Origin' => '*',
'Access-Control-Allow-Methods' => 'POST,PUT,GET,DELETE', 'Access-Control-Allow-Methods' => 'POST,PUT,GET,DELETE',
'Access-Control-Allow-Headers' => 'ApiAuth, User-Agent, Keep-Alive, Origin, No-Cache, X-Requested-With, If-Modified-Since, Pragma, Last-Modified, Cache-Control, Expires, Content-Type, X-E4M-With', 'Access-Control-Allow-Headers' => 'version, access-token, user-token, ApiAuth, User-Agent, Keep-Alive, Origin, No-Cache, X-Requested-With, If-Modified-Since, Pragma, Last-Modified, Cache-Control, Expires, Content-Type, X-E4M-With',
'Access-Control-Allow-Credentials' => 'true' 'Access-Control-Allow-Credentials' => 'true'
], ],