Setup CORS with domain
This is my current setup for all of my backend services, this CORS is based on my domain. (this one is generated by AI, I haven’t fully tested it) // Enable CORS app.enableCors({ origin: (origin, callback) => { // Allow requests with no origin (mobile apps, Postman, etc.) if (!origin) return callback(null, true); // List of allowed origins const allowedOrigins = ['http://localhost:9000']; // Check if origin is in the allowed list if (allowedOrigins....