Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
17 views

express-session does not persist session by cross site request

My client/server architecture: Client (Frontend): Vue (Vite) Server (Backend): Express.js Currently i use only the http, because it's a develop enviornment. For safe request purpose handling, i use ...
rammi22's user avatar
  • 395
0 votes
0 answers
6 views

Error with Express.js library with res.cookie, res.json, res.status, req.headers

Errors appear in the code: Property 'cookie' does not exist on type 'Response any, Record string, any Property 'json' does not exist on type 'Response any, Record string, any Property 'status' does ...
Kira Dresst's user avatar
0 votes
0 answers
5 views

How to host a express js backend in vercel,i am getting error 404

I am trying to host an express js backend api on vercel Here its my project structure for the backend folder . I am trying to host the backend folder everytime it says me 404 error not found This is ...
Rudra Sankha Sinhamahapatra's user avatar
0 votes
1 answer
32 views

passport.deserializeUser function never getting called

Passport's deserialization just does not work no matter what I do. This is my passport.js: const passport = require('passport'); const GoogleStrategy = require('passport-google-oauth20').Strategy; ...
hypedstan's user avatar
0 votes
1 answer
28 views

Setting Cookie to Secure in Production Breaks Authentication

I am using express-session for authentication in my Express application. Here is the code I have so far: app.use( session({ store: new RedisStore({ client: redis }), secret: process.env....
Tejas_hooray's user avatar
0 votes
0 answers
20 views

Setting JWT Cookies from Express Backend to Frontend

i am trying to set the cookie using JWT. On localhost everything works like charm. But when i deploy my FE(front-end) and BE(back-end) on render.com. i can login but after that i get the errors ...
Faisal Rehman's user avatar
0 votes
0 answers
27 views

Cookies not being stored in Production

The cookie was being stored when run on localhost however when hosted online the Cookie is not being stored on the Browser. Below is my code for Backend: const details= req.body; const result = ...
Jen Jose Jeeson's user avatar
0 votes
0 answers
17 views

Cookie gets removed on refreshing or reload -- express/cookie/jwt

Cookie gets removed on refreshing or reload: I am using express js to set cookie and react as a frontend: Can anyone explain why coocki gets deleted after refreshing page?....please help as soon as ...
Arjun Patel's user avatar
0 votes
0 answers
22 views

Cookies are not being set in the browser with express

Iam working on creating a web application in express and react , I have a login controller, on successful login I am returning a res and sending the cookie, I am able to see the cookie in the response ...
Rozzer Martin's user avatar
0 votes
1 answer
53 views

Cookies aren't sent over Vercel

Site works great when backend and frontend are deployed locally (on two different ports) but cookies won't send when I run it on Vercel. I even tried running the front-end locally using the back-end ...
Josephine's user avatar
0 votes
1 answer
62 views

Cookies are not being set in Nextjs 14 from Express Api Deployed on Vercel

Recently i have deployed both node/express api and client(Nextjs 14.1.0) to vercel everything works fine except cookies. In some cases i am getting cookies but they are just temporary when i refresh ...
Harry 408's user avatar
0 votes
1 answer
42 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 ...
TeDi's user avatar
  • 49
0 votes
0 answers
28 views

Response cookies are deleted on every page reload (Node + Astro)

UPDATED: I was able to solve my problem by reading the cookie from req.headers.cookie instead of req.cookies. I followed the instructions from firebase docs and other resources but It wasn't work. ...
Daniel Valencia's user avatar
1 vote
2 answers
62 views

Cookie Get cleared for some fraction of section when reload window

const options = { httpOnly: true, secure: true, overwrite: true, sameSite: "none", }; res .status(200) .cookie("accessToken", accessToken, options) ...
Sandip Shrestha's user avatar
0 votes
0 answers
18 views

cookies are not available in request headers in vercel deployment

I am working on a MERN project. I am trying to implement authentication system. But when running the server in localhost. The cookies are available in request headers but on runnning server on vercel ...
b1shwash's user avatar

15 30 50 per page
1
2 3 4 5
85