title: Setting Cookie in http response header from AWS lambda Node JS
body: <p>I have a Lambda proxy integration enabled, and setting the response headers as part of Lambda output and API Gateway that will return them as part of the HTTP response to the client.</p>
  
  <p>Sample code:</p>
  
  <pre><code>callback(null, {
      "statusCode": 302,
      "Location" : "https://somewebsite.com"
      "headers": { "headerName": "headerValue", ... },
      "body": "..."
  });
  </code></pre>
  
  <p>I need to send out 3 cookies in the headers. I tried. But, failed:</p>
  
  <pre><code>callback(null, {
      "statusCode": 302,
      "Location" : "https://somewebsite.com"
      "headers": { "Set-Cookie": [cookie1String, cookie2String, cookie3String] },
      "body": "..."
  });
  </code></pre>
  
  <p>[Edit]
  I concatenated the cookie and passed in as the response, the client gets the cookie. But when the client calls the target in "location", the request does not have the cookie in the header.</p>
  
  <pre><code>callback(null, {
      "statusCode": 302,
      "Location" : "https://somewebsite.com"
      "headers": { "Set-Cookie": c1=cookie1String;c2=cookie2String; c3=cookie3String] },
      "body": "..."
  });
  </code></pre>
  
  <p>Please help in sending these 3 cookies out to my client.</p>