From 711569fdd6c7e0c95605ef2935d3e5de962fa178 Mon Sep 17 00:00:00 2001 From: lucaslinyker Date: Mon, 30 Jun 2025 00:10:46 -0300 Subject: [PATCH] fix: Remover barra extra de origem permitida no CORS --- src/app.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/app.ts b/src/app.ts index 69d6e12..1da3e56 100644 --- a/src/app.ts +++ b/src/app.ts @@ -11,10 +11,7 @@ export const app = fastify() app.register(fastifyCors, { origin: (origin, cb) => { - const allowedOrigins = [ - 'http://localhost:5500', - 'https://mlkp1.github.io/Front2/', - ] + const allowedOrigins = ['http://localhost:5500', 'https://mlkp1.github.io'] if (!origin || allowedOrigins.includes(origin)) { cb(null, true) return