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