Refactor CORS configuration and add utility, update package.json for dev start command, and create GraphQL query/mutation files

This commit is contained in:
2024-10-06 12:36:15 +07:00
parent 121396aa8f
commit 67f6e7cc57
9 changed files with 14 additions and 10 deletions

View 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,
};