Revert CORS config to default for production compatibility

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
Federico Liva 2026-03-04 10:40:46 +01:00
parent eeeb12bc71
commit 324e5d8e49

View file

@ -256,12 +256,7 @@ const app = express();
const PORT = process.env.PORT || 3001;
// Middleware
app.use(cors({
origin: ['http://localhost:5173', 'http://127.0.0.1:5173'],
credentials: true,
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
allowedHeaders: ['Content-Type', 'Authorization'],
}));
app.use(cors());
app.use(express.json());
// Health check endpoint