Add service in cors origins
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 28s

This commit is contained in:
omaroughriss 2025-07-01 16:42:59 +02:00
parent 05a42f6414
commit a0e389d50f

View File

@ -8,7 +8,7 @@ const PORT = process.env.PORT || 3001;
// Configuration CORS
const corsOptions = {
origin: ['http://local.lecoffreio.4nkweb:3000', 'http://localhost:3000'],
origin: ['http://local.lecoffreio.4nkweb:3000', 'http://localhost:3000', 'http://lecofrre-front:3000'],
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
allowedHeaders: ['Content-Type', 'Authorization']
};