Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

134
Views
res.cookie funciona en Localhost y Postman pero no funciona en producción

res.cookie establece la cookie del navegador en localhost pero no establece la cookie del navegador después de la producción y todavía puedo encontrar set-cookie en el encabezado de respuesta. No veo ningún problema cors. Uso la aplicación Digitalocean para implementar mi servidor de nodos.

Aquí está mi código -

 res.cookie('ckstate', 'logged', { httpOnly: false, sameSite: router.get("env") === "development" ? true : "none", secure: router.get("env") === "development" ? false : true }) .status(200) .json(others)

Aquí está la solicitud POST de mi cliente React:

 await axios.post(API_URL, user, { withCredentials: true }) .then(res => { Auth.refreshAuth(); history.push('/'); }) .catch(err => { console.log(err) setMessage('Wrong Credentials. Try again.'); })

Aquí está el encabezado de respuesta

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!