Files
epess-web-backend/src/common/utils/cors.utils.ts

7 lines
199 B
TypeScript

export const cors = {
origin: process.env.CORS_ORIGIN,
methods: ['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS'],
allowedHeaders: ['Content-Type', 'Authorization'],
credentials: true,
};