vercel / serve-handler

The foundation of `serve`

Home Page:https://npmjs.com/serve-handler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple `Set-Cookie` headers?

sam-rad opened this issue · comments

commented

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`
        }
      ]
    }
  ]
});