Refactor CORS configuration and add utility, update package.json for dev start command, and create GraphQL query/mutation files
This commit is contained in:
6
src/common/utils/cors.utils.ts
Normal file
6
src/common/utils/cors.utils.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export const cors = {
|
||||
origin: process.env.CORS_ORIGIN,
|
||||
methods: ['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS'],
|
||||
allowedHeaders: ['Content-Type', 'Authorization'],
|
||||
credentials: true,
|
||||
};
|
||||
Reference in New Issue
Block a user