Cors: modified

master
cgonzalesmo 2022-08-18 13:45:24 -05:00
parent 527ed5d964
commit 81fea5524b
2 changed files with 5 additions and 5 deletions

View File

@ -15,17 +15,17 @@ return [
|
*/
'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,

View File

@ -34,7 +34,7 @@ return [
'google' => [
'client_id' => env('GOOGLE_CLIENT_ID'),
'client_secret' => env('GOOGLE_CLIENT_SECRET'),
'redirect' => '/api/login/google/callback',
'redirect' => env('GOOGLE_REDIRECT_URI'),
],
];