add cors rules
This commit is contained in:
+4
-4
@@ -2,15 +2,15 @@
|
||||
|
||||
return [
|
||||
|
||||
'paths' => ['*'],
|
||||
'paths' => ['api/*', 'sanctum/csrf-cookie'],
|
||||
|
||||
'allowed_methods' => ['*'],
|
||||
'allowed_methods' => ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'],
|
||||
|
||||
'allowed_origins' => ['*'],
|
||||
'allowed_origins' => [env('APP_URL', 'http://localhost')],
|
||||
|
||||
'allowed_origins_patterns' => [],
|
||||
|
||||
'allowed_headers' => ['*'],
|
||||
'allowed_headers' => ['Content-Type', 'X-Auth-Token', 'Authorization', 'X-Requested-With'],
|
||||
|
||||
'exposed_headers' => [],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user