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,
secure: true,
sameSite: "None",
expires: new Date(Date.now() + 24 * 60 * 60 * 1000 * 365), // 1 year
path: "/"
}).status(200).json({
success : true,

View File

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