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

120
Views
Cookies not getting Saved on Live website

I hosted my client side on Netlify and backend on Heroku. Everything is working fine locally, but as soon as I deployed the changes live it stopped working.

  1. Locally in my client side, I have added proxy in package.json like "proxy": "localhost:5000" (Server was running on 5000 port locally) and it is working and I am able to store cookies in Chrome.

  2. After deploying to Netlify, I just removed the proxy, the user is getting saved successfully in MongoDB which is live but cookies are not getting saved.

I am not sure what I'm doing wrong, since everything is working in local.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You do need a custom domain set for your app.

herokuapp.com is included in the Mozilla Foundation’s Public Suffix List. This means that in browsers that support the functionality (eg. Firefox, Chrome, Opera), applications in the herokuapp.com domain are prevented from setting cookies for *.herokuapp.com.

As per https://devcenter.heroku.com/articles/cookies-and-herokuapp-com

about 4 years ago · Juan Pablo Isaza Report
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!