From a203371027bb949bdfc830c99ddfb1e9e08544ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Berat=20Gen=C3=A7?= Date: Thu, 18 Jan 2024 19:48:50 +0300 Subject: [PATCH] cors enabled --- prisma/schema.prisma | 2 +- src/main.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index ed5eaa8..077550a 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -5,7 +5,7 @@ generator client { datasource db { provider = "mysql" - url = "mysql://root:ysxgdil0@35.195.248.72:3306/taskManagerp" + url = "mysql://root:ysxgdil0@35.195.248.72:3306/taskManager" } model Employee { diff --git a/src/main.ts b/src/main.ts index 68d4d10..3d2c175 100644 --- a/src/main.ts +++ b/src/main.ts @@ -9,7 +9,6 @@ async function bootstrap() { const app = await NestFactory.create(AppModule) app.enableCors({ origin: 'https://app.taskermanager.online', - // origin: ['https://app.taskermanager.online', 'http://localhost:3000'], credentials: true })