Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
fix: samesite changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Sreesanjay committed Mar 10, 2024
1 parent 819db66 commit 61caa58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions client/src/features/authSlice.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const authSlice = createSlice({
localStorage.setItem("user", JSON.stringify(action.payload.user));
Cookies.set("token", action.payload.token, {
secure: true,
sameSite: "Lax",
sameSite: "none",
path: '/',
expires: 3,
});
Expand All @@ -59,7 +59,7 @@ const authSlice = createSlice({
localStorage.setItem("user", JSON.stringify(action.payload.user));
Cookies.set("token", action.payload.token, {
secure: true,
sameSite: "Lax",
sameSite: "none",
path: '/',
expires: 3,
});
Expand Down
4 changes: 2 additions & 2 deletions server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const { notFound, errorHandler } = require('./middlewares/errorMiddlewares')
const userRoute = require('./routes/indexRoute.js')
const adminRoute = require('./routes/adminRoute.js')
// const ORIGIN = process.env.NODE_ENV === 'development' ? "http://localhost:4000" : 'https://thalia.vercel.app'
// const ORIGIN = ["http://localhost:4000", 'https://thalia.vercel.app']
const ORIGIN = ["http://localhost:4000", 'https://thalia.vercel.app']
const corsConfig = {
origin: "*",
origin: ORIGIN,
credentials: true,
};

Expand Down

0 comments on commit 61caa58

Please sign in to comment.