FIX - Deploy bug
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user