Yesterday, as I was working on a CORS configuration, AI generated a block of code for me:

const allowedOrigins = [

process.env.FRONTEND_URL || "http://localhost:3000",

process.env.ADMIN_URL || "http://localhost:3001",

].filter(Boolean);