fix(cors): ajouter localhost:5174 aux origines autorisées

This commit is contained in:
Hermann_Kitio 2026-04-18 03:07:05 +03:00
parent 9f5a4a0599
commit 9a119d0421

View file

@ -16,7 +16,11 @@ const { upgradeWebSocket, injectWebSocket } = createNodeWebSocket({ app })
app.use( app.use(
'*', '*',
cors({ cors({
origin: ['https://expria.app', 'http://localhost:5173'], origin: [
'https://expria.app',
'http://localhost:5173',
'http://localhost:5174',
],
allowMethods: ['GET', 'POST', 'OPTIONS'], allowMethods: ['GET', 'POST', 'OPTIONS'],
allowHeaders: ['Content-Type', 'Authorization'], allowHeaders: ['Content-Type', 'Authorization'],
}) })