Added functionality in Attribute step of product creation configuration

This commit is contained in:
Mahir-Mohamed
2026-08-11 12:04:04 +05:30
parent 46abddf81c
commit 90a6c3238c
22 changed files with 178 additions and 245 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ app.use(helmet({
crossOriginResourcePolicy: { policy: 'cross-origin' },
}));
app.use(cors({
origin: process.env.CORS_ORIGIN || '*',
origin: process.env.CORS_ORIGIN ? (process.env.CORS_ORIGIN.includes(',') ? process.env.CORS_ORIGIN.split(',') : process.env.CORS_ORIGIN) : '*',
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS', 'PATCH'],
allowedHeaders: ['Content-Type', 'Authorization', 'Accept', 'X-Requested-With']
}));