# 'Webhook' node and 'Respond to Webhook' node are omitting same-name headers

**URL:** <https://community.n8n.io/t/webhook-node-and-respond-to-webhook-node-are-omitting-same-name-headers/24098>\
**Category:** Questions\
**Created:** [March 14, 2023, 3:48pm UTC](https://community.n8n.io/t/webhook-node-and-respond-to-webhook-node-are-omitting-same-name-headers/24098 "2023-03-14T15:48:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![shrey-42](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/shrey-42/32/3437_2.png) [@shrey-42](https://community.n8n.io/u/shrey-42)\
**Post date:** [March 14, 2023, 3:48pm UTC](https://community.n8n.io/t/webhook-node-and-respond-to-webhook-node-are-omitting-same-name-headers/24098/1 "2023-03-14T15:48:22Z")

</div>

## Describe the issue/error/question

When attempting to send multiple cookies, as a response to a webhook call, the cookie headers get omitted.

By definition ([Set-Cookie header - HTTP | MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie)), to send multiple cookies as part of the response, the header ‘Set-Cookie’ needs to be sent multiple times.

But, in the current scenario, if we do that in the `Respond to Webhook` node, only one of the multiple `Set-Cookie` is sent and the rest get omitted.

## Please share the workflow

## Share the output returned by the last node

Response sent from n8n:

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/7/a/7a86a80099a7dc53b3a2f6059cc6ccf8730d20c0.png)

Received data on the client:

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/f/4/f480dbd1621d206609e63dd3c05fdfb558a480e6.png)

* * *

* * *

This issue extends to the Webhook node as well.

**Data sent from the client:**

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/d/5/d5ca492fc7214abe6f9f8dcb4e3f6e8be3cc727c.png)

**Data received by the Webhook node.**

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/2/b/2b9c96928b590e305d0c1fdfa1ef83c5befc06a4.png)

As seen in the above image, the multiple cookies received have all been clubbed under one header, thus making it infeasible to retrieve each of the cookies individually.

## Information on your n8n setup

- **n8n version:** 0.219.1
- **Database you’re using (default: SQLite):** Postgres
- **Running n8n with the execution process [own(default), main]:** main
- **Running n8n via [Docker, npm, n8n.cloud, desktop app]:** Docker

---

<div class="post-metadata">

**Author:** ![shrey-42](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/shrey-42/32/3437_2.png) [@shrey-42](https://community.n8n.io/u/shrey-42)\
**Post date:** [March 14, 2023, 3:50pm UTC](https://community.n8n.io/t/webhook-node-and-respond-to-webhook-node-are-omitting-same-name-headers/24098/2 "2023-03-14T15:50:15Z")

</div>

I suppose this might require some code modification in the `Respond to Webhook` node.

In the meanwhile, could there be a workaround that enables sending multiple cookies in the Response headers?

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [March 14, 2023, 5:01pm UTC](https://community.n8n.io/t/webhook-node-and-respond-to-webhook-node-are-omitting-same-name-headers/24098/3 "2023-03-14T17:01:11Z")

</div>

As a workaround I would probably do what the page you have linked to suggests and split your values with a ; that should then get you around it.

---

<div class="post-metadata">

**Author:** ![shrey-42](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/shrey-42/32/3437_2.png) [@shrey-42](https://community.n8n.io/u/shrey-42)\
**Post date:** [March 14, 2023, 5:04pm UTC](https://community.n8n.io/t/webhook-node-and-respond-to-webhook-node-are-omitting-same-name-headers/24098/4 "2023-03-14T17:04:41Z")

</div>

But separating using `;` is mainly for separating the different attributes of an individual cookie.

e.g. in this:

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/8/d/8d2baad4f878b384e1df6e8b8b89ca188b868fc2.png)

it’s almost impossible to judge which `;` to select as the demarcation between different cookies, as opposed to different attributes within an individual cookie.

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [March 14, 2023, 5:41pm UTC](https://community.n8n.io/t/webhook-node-and-respond-to-webhook-node-are-omitting-same-name-headers/24098/5 "2023-03-14T17:41:01Z")

</div>

Sadly this is the best I have available at the moment, It would be a case of splitting on the ; and working from there. This is one of those things where it will need to be prioritised to be implemented although I may have a quick look later in the week to see if it is a quick fix.

---

<div class="post-metadata">

**Author:** ![sudoischenny](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/sudoischenny/32/25956_2.png) [@sudoischenny](https://community.n8n.io/u/sudoischenny)\
**Post date:** [June 3, 2023, 4:15am UTC](https://community.n8n.io/t/webhook-node-and-respond-to-webhook-node-are-omitting-same-name-headers/24098/6 "2023-06-03T04:15:03Z")

</div>

I’ve created a fork that allows this, but please be warned I’m very inexperienced in TS, although I hope to get better so I can contribute more.  
Please see the screenshots for the updated respond to webhook node.  
[https://github.com/sudoischenny/n8n](https://github.com/sudoischenny/n8n)

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/3/f/3f8b381f53a4c9cc2f9d81217e985915524f7af6.png)  
 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/d/9/d92ee9e134f89f64950b6cd4016f17b1c215612a.png)  
 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/7/b/7b27dd74f1e2683b9f14613721ebfbafa4afe786.png)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [September 1, 2023, 4:15am UTC](https://community.n8n.io/t/webhook-node-and-respond-to-webhook-node-are-omitting-same-name-headers/24098/7 "2023-09-01T04:15:13Z")

</div>

Closed on September 1, 2023, 4:15am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
