✨ feat(account, order, plan, profile, redis): enhance functionality and security
- Updated CORS settings for frontend compatibility. - Integrated Redis URL configuration. - Improved login response structure in account service. - Added role-based authorization for order and plan management. - Enhanced error handling and logging in profile and plan services. - Updated Swagger documentation for clarity on order statuses. - Configured Redis connection for better performance.
This commit is contained in:
Vendored
+1
-1
@@ -13,7 +13,7 @@ const swaggerSpec = swaggerJSDoc(swaggerOptions);
|
||||
app.use("/docs", swaggerUi.serve, swaggerUi.setup(swaggerSpec));
|
||||
// middleware
|
||||
app.use(cors({
|
||||
origin: ["http://localhost:3000"],
|
||||
origin: ["http://localhost:5173"],
|
||||
methods: ["GET", "POST", "PATCH", "DELETE", "PUT"],
|
||||
credentials: true
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user