7 lines
199 B
TypeScript
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,
|
|
};
|