Skip to content

Commit

Permalink
cors specified in production env
Browse files Browse the repository at this point in the history
  • Loading branch information
salimkanoun committed Sep 1, 2024
1 parent e3dbdf7 commit db4b3f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GaelO2/config/cors.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

'allowed_methods' => ['*'],

'allowed_origins' => ['*.gaelo.fr', '*.pixilib.fr'],
'allowed_origins' => env('APP_ENV', 'production') === 'production' ? ['*.gaelo.fr', '*.pixilib.fr'] : ['*'], //['*'] for non production environements

'allowed_origins_patterns' => ['*'],

Expand Down

0 comments on commit db4b3f1

Please sign in to comment.