From f69b219b02f1189827cc83b0bc4d0b1165358c3f Mon Sep 17 00:00:00 2001 From: Italo A Date: Thu, 23 Nov 2023 12:45:23 -0300 Subject: [PATCH] feat: open cors --- backend/src/main.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/backend/src/main.ts b/backend/src/main.ts index 7e88829e..497a245b 100644 --- a/backend/src/main.ts +++ b/backend/src/main.ts @@ -18,16 +18,7 @@ async function bootstrap() { ); app.enableCors({ - origin: [ - process.env.FRONTEND_URL, - 'http://localhost:3000', - 'http://42transcendence.me', - 'http://www.42transcendence.me', - 'http://api.42transcendence.me', - 'https://42transcendence.me', - 'https://www.42transcendence.me', - 'https://api.42transcendence.me', - ], + origin: ['*'], credentials: true, });