🔨」 fix: change default to vite url

This commit is contained in:
2025-10-14 15:03:14 +02:00
parent f3bb3ce5eb
commit 9f194449ac

View File

@ -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" ]
});