Add allowed origin
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 33s

This commit is contained in:
omaroughriss 2025-07-24 12:59:04 +02:00
parent 698256cd24
commit ce2c399055

View File

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