]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: proxy/http-ana: Add support of extra attributes for the cookie directive
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 21 Jan 2020 10:06:48 +0000 (11:06 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 22 Jan 2020 06:18:31 +0000 (07:18 +0100)
commit2f5339079b884ac8bdde166add1879ebfd9e433b
tree57837b99985aa7a06cd375102f2356c1fcbd1912
parente9ff8992a120f320d953f207a5a04f6595b2b29a
MINOR: proxy/http-ana: Add support of extra attributes for the cookie directive

It is now possible to insert any attribute when a cookie is inserted by
HAProxy. Any value may be set, no check is performed except the syntax validity
(CTRL chars and ';' are forbidden). For instance, it may be used to add the
SameSite attribute:

    cookie SRV insert attr "SameSite=Strict"

The attr option may be repeated to add several attributes.

This patch should fix the issue #361.
doc/configuration.txt
include/types/proxy.h
src/cfgparse-listen.c
src/haproxy.c
src/http_ana.c