Skip to content

Commit

Permalink
updated cors config
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdoulrachard committed Nov 13, 2024
1 parent ef0417c commit 27d4eb9
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions config/cors.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,17 @@
| To learn more: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
|
*/

'paths' => ['api/*', 'sanctum/csrf-cookie'],


'paths' => ['api/*', 'sanctum/csrf-cookie'],
'allowed_methods' => ['*'],

'allowed_origins' => ['https://cche-ch.org'],

'allowed_origins' => [
'http://cche-ch.org',
'https://cche-ch.org',
'localhost',
],
'allowed_origins_patterns' => [],

'allowed_headers' => ['*'],

'exposed_headers' => [],

'exposed_headers' => ['*'], // Modification
'max_age' => 0,

'supports_credentials' => false,


];
'supports_credentials' => true,
];

0 comments on commit 27d4eb9

Please sign in to comment.