Hi,
Is is possible to set prefix to response header set-cookie path?
I'm trying to do reverse proxy with Traefik, so that path /server_X/whatever
is routed to server_X. I need servers not be aware of this, so we strip path prefix, so server see request on /whatever
. The issue is, when the server set cookies with request path, it's set to /whatever
, which is not correct as browser is on /server_X/whatever
, thus does not use this cookie. I can't use /
, because servers use same cookies, so they would rewrite them all the time under their hands.
I need Traefik to rewrite response header set-cookie path to prefix it with /server_X
. Is it possible? I'm able to do it with Nginx and HAProxy, but so far unlucky with Traefik. I found this feature request https://github.com/containous/traefik/issues/6047 that looks like it could help, but no progress there.
Thanks in advance