wire auth api
This commit is contained in:
parent
9e70fae38d
commit
eff7c5c281
12 changed files with 137 additions and 19 deletions
|
|
@ -12,11 +12,16 @@ $allowedOrigins = array_values(array_filter(array_map(
|
|||
)));
|
||||
|
||||
return [
|
||||
'paths' => ['login', 'logout', 'me'],
|
||||
'paths' => ['api/*'],
|
||||
'allowed_methods' => ['GET', 'POST', 'OPTIONS'],
|
||||
'allowed_origins' => $allowedOrigins,
|
||||
'allowed_origins_patterns' => [],
|
||||
'allowed_headers' => ['Content-Type', 'X-Requested-With', 'Accept', 'Origin'],
|
||||
'allowed_headers' => [
|
||||
'Content-Type',
|
||||
'X-Requested-With',
|
||||
'Accept',
|
||||
'Origin',
|
||||
],
|
||||
'exposed_headers' => [],
|
||||
'max_age' => 0,
|
||||
'supports_credentials' => true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue