From 2e2ee5fe71b73122081948932b1653ebcb317999 Mon Sep 17 00:00:00 2001 From: Azmog <80716388+AzmogEx@users.noreply.github.com> Date: Fri, 19 Jun 2026 00:51:17 +0200 Subject: [PATCH] chore(backend): autorise localhost:3001 en CORS (dev) --- backend/config/cors.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/config/cors.php b/backend/config/cors.php index 076c11f..10c681a 100644 --- a/backend/config/cors.php +++ b/backend/config/cors.php @@ -19,7 +19,12 @@ return [ 'allowed_methods' => ['*'], - 'allowed_origins' => [env('FRONTEND_URL', 'http://localhost:3000')], + 'allowed_origins' => array_values(array_unique(array_filter([ + env('FRONTEND_URL', 'http://localhost:3000'), + 'http://localhost:3000', + // Preview de la refonte DSFR (port 3001) + 'http://localhost:3001', + ]))), 'allowed_origins_patterns' => [],