From 9f194449ac0017e6cc82b55534f5724c910bfc95 Mon Sep 17 00:00:00 2001 From: adjoly Date: Tue, 14 Oct 2025 15:03:14 +0200 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=F0=9F=94=A8=E3=80=8D=20fix:=20change?= =?UTF-8?q?=20default=20to=20vite=20url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/auth/default.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/auth/default.js b/src/api/auth/default.js index a39fc99..63b9888 100644 --- a/src/api/auth/default.js +++ b/src/api/auth/default.js @@ -24,7 +24,7 @@ authDB.prepareDB(); export default async function(fastify, options) { fastify.register(cors, { - origin: process.ENV.CORS_ORIGIN || '*', + origin: process.ENV.CORS_ORIGIN || 'http://localhost:5173', credentials: true, methods: [ "GET", "POST", "DELETE", "OPTIONS" ] });