---
title: "Discussion on \"How to get secure cookies working with Nginx\" | Hashnode"
description: "Discussion on \"How to get secure cookies working with Nginx\". Background\nAs I was setting up my Node server in a VPS, I got confused as to why my cookies weren't being set.\nAfter some time I figured out that it works in the development environment, but not in the production environment.\nI kept prodding around t..."
url: "https://hashnode.com/posts/how-to-get-secure-cookies-working-with-nginx/6110e6ebb79d6a1136684058"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to get secure cookies working with Nginx](https://blog.paolotiu.com/how-to-get-secure-cookies-working-with-nginx?utm_source=hashnode&utm_medium=feed)

Background As I was setting up my Node server in a VPS, I got confused as to why my cookies weren't being set. After some time I figured out that it works in the development environment, but not in the production environment. I kept prodding around t...

Aug 9, 2021 · 2 min read · blog.paolotiu.com  
Read the article

-   [#nginx](https://hashnode.com/tag/nginx)
-   [#cookies](https://hashnode.com/tag/cookies)
-   [#tips](https://hashnode.com/tag/tips)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#express](https://hashnode.com/tag/express)

## Written by

[Gabriel Paolo Tiu](https://hashnode.com/@tiu)

@tiu

  
[View profile](https://hashnode.com/@tiu)

Creating

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
