I\'m using API Gateway\'s Proxy integration to call a Lambda. The output format specification is this follow JSON format:
{
\"statusCode\": httpStatusCode,
As answered, to date, API Gateway will drop identical keys, only setting one of the cookies.
However, a workaround exists. You can change the casing of the string 'Set-Cookie' so the keys are not unique. For example, you could use the keys set-cookie, Set-cookie, sEt-cookie, and the headers will be preserved and 3 different cookies would be set.
Because the RFC standard makes headers case-insensitive this should work with all RFC-compliant clients.
So, you could rewrite your set-cookie headers, permuting all the possible casings of "Set-Cookie" to get around this.
This technique (hack) is employed by Zappa, a popular serverless framework written in Python.