http-cookie-flag #
Adds the HttpOnly, Secure and SameSite flags to cookies that the backend sets. Use it to harden cookies from an application you cannot change; one directive can cover one cookie name or all of them.
Source: upstream source
Directives
Example
location / {
set_cookie_flag Secret HttpOnly secure SameSite;
set_cookie_flag * HttpOnly;
set_cookie_flag SessionID SameSite=Lax secure;
set_cookie_flag SiteToken SameSite=Strict;
}