FIX - Deploy bug

This commit is contained in:
Manik Maity
2024-11-13 21:13:38 +05:30
parent 6101ec0821
commit 33e878d763
2 changed files with 2 additions and 2 deletions

View File

@@ -33,6 +33,7 @@ export async function signinController(req, res) {
httpOnly: true, httpOnly: true,
secure: true, secure: true,
sameSite: "None", sameSite: "None",
expires: new Date(Date.now() + 24 * 60 * 60 * 1000 * 365), // 1 year
path: "/" path: "/"
}).status(200).json({ }).status(200).json({
success : true, success : true,

View File

@@ -19,8 +19,7 @@ app.use('/docs', swaggerUi.serve, swaggerUi.setup(swaggerDocs));
const io = new Server(httpServer, { const io = new Server(httpServer, {
cors: { cors: {
origin: CLIENT_URL, origin : "*", // Allow requests from any origin
methods: ["GET", "POST", "PUT", "DELETE"],
credentials: true credentials: true
} }
}) })