mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-05-25 14:29:25 +08:00
更新 apiAdmin.php
提升跨域支持
This commit is contained in:
parent
ff7f878fd6
commit
295d135b5e
@ -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'
|
||||||
],
|
],
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user