serve-handler icon indicating copy to clipboard operation
serve-handler copied to clipboard

Multiple `Set-Cookie` headers?

Open sam-rad opened this issue 6 years ago • 0 comments

Is there any way I can set multiple Set-Cookie headers? Currently if I do the following, only the last item in the array, b=b, is set:

handler(request, response, {
  public: "public",
  headers: [
    {
      source: "**",
      headers: [
        {
          key: "Set-Cookie",
          value: `a=a`
        },
        {
          key: "Set-Cookie",
          value: `b=b`
        }
      ]
    }
  ]
});

sam-rad avatar Jan 08 '20 23:01 sam-rad