# Remove Cookies from headers

**URL:** <https://www.ruby-forum.com/t/remove-cookies-from-headers/202366>\
**Category:** NGINX\
**Created:** [January 27, 2011, 6:14pm UTC](https://www.ruby-forum.com/t/remove-cookies-from-headers/202366 "2011-01-27T18:14:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [January 27, 2011, 6:14pm UTC](https://www.ruby-forum.com/t/remove-cookies-from-headers/202366/1 "2011-01-27T18:14:06Z")

</div>

Hello,

Is there a way to remove cookies sent from the backend?  
In varnish we have “unset req.http.cookie” (when receiving the request  
before sending to the backend) or “unset beresp.http.set-cookie” (when  
sending the response from the backend to the client) to manipulate  
cookies.

I’m not using cache … just want to remove cookies before the response  
is sent to the client.

Do we have any similar option to do this?

Thanks

Posted at Nginx Forum:

> **[Remove Cookies from headers](https://forum.nginx.org/read.php?2,170179,170179#msg-170179)**
>
> Hello, Is there a way to remove cookies sent from the backend? In varnish we have "unset req.http.cookie" (when receiving the request before sending to the backend) or "unset beresp.http.set-cookie" (when sending the response from...

---

<div class="post-metadata">

**Author:** ![nfn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/b19c9b/32.png) [@nfn](https://www.ruby-forum.com/u/nfn)\
**Post date:** [January 28, 2011, 6:10am UTC](https://www.ruby-forum.com/t/remove-cookies-from-headers/202366/2 "2011-01-28T06:10:21Z")

</div>

2011/1/27 nfn [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Is there a way to remove cookies sent from the backend?

Use proxy\_hide\_header Set-Cookie or fastcgi\_hide\_header Set-Cookie.
