January 30, 2019 04:58PM

I've run into an issue where a cookie I'm sending back to a browser is too large (> 4kB), so it's being split into two cookies. This results in two `Set-Cookie` headers.

Unfortunately, it seems that `auth_request_set` doesn't work well with this, because you only get the first header.

Is there a way around this? I saw the var `$upstream_cookie_[name]`, which might work (though awkwardly - you'd need to set use that once for every possible header part), and the other idea I had was maybe using an `access_by_lua` script to try to fix this in some way, but I'm not sure how I'd go about that either.
Subject Author Posted

Multiple Set-Cookie headers with auth_request

brianv0 January 30, 2019 04:58PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 108
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready