Browse Source

中间件处理跨域问题3

master
wanghongjun 1 year ago
parent
commit
8f6729a31d
  1. 2
      config/apiadmin.php

2
config/apiadmin.php

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

Loading…
Cancel
Save