update cors

This commit is contained in:
2024-10-13 14:22:05 +07:00
parent bf2b361aaf
commit 56c11a4b77
4 changed files with 7 additions and 11 deletions

View File

@@ -1,8 +0,0 @@
import { CorsOptions } from '@nestjs/common/interfaces/external/cors-options.interface';
export const cors: CorsOptions = {
origin: process.env.CORS_ORIGIN,
methods: ['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS'],
allowedHeaders: ['Content-Type', 'Authorization'],
credentials: true,
};