diff --git a/backend/controllers/userController.ts b/backend/controllers/userController.ts index 873581f..d7bfb76 100644 --- a/backend/controllers/userController.ts +++ b/backend/controllers/userController.ts @@ -134,7 +134,7 @@ export const userLogin = asyncWrapper(async (req: Request, res: Response) => { res.cookie('token', token, { httpOnly: true, // secure: process.env.NODE_ENV === 'production', - secure: true, + // secure: true, // sameSite: 'strict', sameSite: "none", maxAge: 5 * 24 * 60 * 60 * 1000 @@ -180,7 +180,7 @@ export const adminLogin = asyncWrapper(async (req, res) => { res.cookie('token', token, { httpOnly: true, // secure: process.env.NODE_ENV === 'production', - secure: true, + // secure: true, // sameSite: 'strict', sameSite: "none", maxAge: 5 * 24 * 60 * 60 * 1000 diff --git a/backend/package-lock.json b/backend/package-lock.json index 1e93121..628aab6 100644 --- a/backend/package-lock.json +++ b/backend/package-lock.json @@ -628,6 +628,7 @@ "resolved": "https://registry.npmjs.org/@types/cors/-/cors-2.8.17.tgz", "integrity": "sha512-8CGDvrBj1zgo2qE+oS3pOCyYNqCPryMWY2bGfwA0dcfopWGgxs+78df0Rs3rc9THP4JkOhLsAa+15VdpAqkcUA==", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*" } diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 0f0e46a..737fcbf 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -14,7 +14,7 @@ services: build: context: ./frontend ports: - - "5173:5000" + - "80:80" volumes: - /app/node_modules - ./frontend:/app