res.cookie
MRUNAL727 opened this issue · comments
Browser is not setting cookies after login in MERN booking app.
i have the same problem did you find solution to this
@MEHARKhaoula @MRUNAL727
// Server Side
app.use(
cors({
origin: 'http://localhost:5173',
credentials: true,
})
);
// Client Side
export const publicRequest = axios.create({
baseURL: BASE_URL,
withCredentials: true,
});
thanks @arbazdogar20