import createCors from "cors"; import { envVars } from "./env"; const origin = [envVars.FRONTEND_URL]; const cors = createCors({ origin, credentials: true, methods: ["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], allowedHeaders: ["Content-Type", "Authorization"], }); export { cors };