All Questions
41 questions
0
votes
0
answers
15
views
I can't set cookies on iOS
1
With a web server build with Node.js and Express.js I'm attaching the cookies at the response.
res.cookie('access_token', token, {
httpOnly: true,
secure: true,
sameSite:'...
0
votes
1
answer
51
views
Set Cookie in browser is not being persisted
I have an express code that sends the cookie to get requests in some route:
res.cookie("userID", `${userSaved._id}`, { maxAge: 900000, httpOnly: true });
So when I make a get request in ...
0
votes
1
answer
61
views
Reactjs cient not receiving cookies from express server
I'm running my project on different servers, backend on render and frontend on vercel. However I'm only running into this error on deployment, meaning that the cookie is either not being set properly ...
1
vote
0
answers
23
views
Browser Not Storing Cookies React & ExpressJS
I am having an issue retrieving cookies i sent from the server, my unsigned cookies are sent parsed the cookies parser middleware in express,
This issue doesn't occur when using postman
This is a ...
0
votes
0
answers
30
views
expressjs cookies aren't showing up in client
I am using expressjs cookieParser to sign and make http only JWT cookies. I'm not getting any errors but the cookies aren't showing up on my Vite project or when I use Thunderclient to login then test ...
0
votes
0
answers
284
views
Invalid CSRF Token Because Chrome Blocks third-party cookies in Incognito mode
My front end uses React and is hosted by https://render.com/ with a domain purchased on SquareSpace. My backend is in Express.js and requires a CSRF token for verification in order to prevent CSRF. ...
2
votes
1
answer
456
views
How to set cookies in browser
I am working on a MERN(MongoDB atlas, Express, React typescript, node.js) project. I am not able to set cookies in my browser. I am receiving the cookies in network tab of the browser developer tool. ...
0
votes
1
answer
205
views
Set-Cookie response header does not set a browser cookie
I have a problem with setting a cookie after user login. (This problem is only in production).
My /login endpoint returns a cookie with token and other required info (below)
if (isPasswordValid === ...
0
votes
1
answer
404
views
Cookies present in network response header from Node.js backend but not available in application storage cookies tab
I'm attempting to create a basic cookie using express's res.cookie() function. However, I'm encountering an issue where the cookies aren't being properly set in the application tab. My setup consists ...
0
votes
1
answer
121
views
Is the following a safe and correct way of using a cookie?
I am making a website where a user can create a post, edit their post and delete their post. There is a homepage(much like the Stack Exchange homepage) where every new post is shown.
When a user ...
1
vote
1
answer
523
views
Cookies available in network response header but not available in application storage cookies tab
I am trying to set a simple cookie using express res.cookies() but the cookies are not being set in the application tab. My frontend is in React and backend is in node. The application work well when ...
1
vote
1
answer
1k
views
Why cookies are auto-set in node express js a response http request?
I'm developing a web app and there is already a login system that keep the session through a cookie. Now i would like to implement logout function. My idea was to delete cookie session but even if i ...
3
votes
0
answers
1k
views
Set Cookie not working (nextJs + express)
I'm trying to set the cookie from my express backend to my nextjs front end using the response.setHeader, but it's not working, I get my json response but no cookies are set, I used postman to make ...
0
votes
1
answer
178
views
Is it impossible to set a domain of localhost cookie remotely from a backend?
I've already checked out these two SO questions:
Can I use localhost as the domain when setting an HTTP cookie?
Setting a cookie from a remote domain for local development
But I don't want to edit my ...
0
votes
1
answer
715
views
Browser not saving response cookies
Frond-end: React (react-admin) with Webpack
Back-end: NestJS / Express
I developed 3 routes (login, check and logout) that are beautifully working with Swagger UI, but when I try to use the 'login' ...