Cors: modified
This commit is contained in:
parent
527ed5d964
commit
81fea5524b
@ -15,17 +15,17 @@
|
||||
|
|
||||
*/
|
||||
|
||||
'paths' => ['api/*', 'sanctum/csrf-cookie'],
|
||||
'paths' => ['api/*','/*', 'sanctum/csrf-cookie','oauth/*'],
|
||||
|
||||
'allowed_methods' => ['*'],
|
||||
|
||||
'allowed_origins' => ['*','localhosto:3000/*'],
|
||||
'allowed_origins' => ['*','http://localhost:3000/'],
|
||||
|
||||
'allowed_origins_patterns' => ['Google/'],
|
||||
'allowed_origins_patterns' => ['content-type', 'accept', 'x-custom-header', 'Access-Control-Allow-Origin'],
|
||||
|
||||
'allowed_headers' => ['*'],
|
||||
|
||||
'exposed_headers' => ['*'],
|
||||
'exposed_headers' => ['x-custom-response-header'],
|
||||
|
||||
'max_age' => 0,
|
||||
|
||||
|
@ -34,7 +34,7 @@
|
||||
'google' => [
|
||||
'client_id' => env('GOOGLE_CLIENT_ID'),
|
||||
'client_secret' => env('GOOGLE_CLIENT_SECRET'),
|
||||
'redirect' => '/api/login/google/callback',
|
||||
'redirect' => env('GOOGLE_REDIRECT_URI'),
|
||||
],
|
||||
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user