From f158ea2cb24d1f7e94cd9013db6656f94e87f930 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Mon, 5 Jul 2021 16:00:59 +0200 Subject: [PATCH] test cors Signed-off-by: Arthur DANJOU --- config/cors.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/config/cors.ts b/config/cors.ts index 81d4e46..994f90f 100755 --- a/config/cors.ts +++ b/config/cors.ts @@ -44,13 +44,7 @@ const corsConfig: CorsConfig = { | one of the above values. | */ - origin: (origin) => { - if (process.env.NODE_ENV === 'development') { - return true; - } - - return origin.includes('arthurdanjou.fr') - }, + origin: true, /* |--------------------------------------------------------------------------