Welcome! Log In Create A New Profile

Advanced

Multiple Set-Cookie headers with auth_request

January 30, 2019 04:58PM
Hi,

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: 281
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready