From 9a89e4a3651565acae09112de3c6df7af67fffd5 Mon Sep 17 00:00:00 2001 From: darta Date: Mon, 31 Jan 2022 13:38:56 +0000 Subject: [PATCH] fix(haproxy): removed httponly from locale cookie --- docker/haproxy/haproxy-behind.conf | 2 +- docker/haproxy/haproxy.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/haproxy/haproxy-behind.conf b/docker/haproxy/haproxy-behind.conf index 634ea1f..5e5b1ff 100644 --- a/docker/haproxy/haproxy-behind.conf +++ b/docker/haproxy/haproxy-behind.conf @@ -96,7 +96,7 @@ backend be_sso acl existing-x-forwarded-proto req.hdr(X-Forwarded-Proto) -m found http-request add-header X-Forwarded-Host %[req.hdr(Host)] unless existing-x-forwarded-host http-request add-header X-Forwarded-Proto https unless existing-x-forwarded-proto - http-response replace-header Set-Cookie (KEYCLOAK_LOCALE=[^;]*);(.*) \1;Domain="${DOMAIN}";Version=1;Path=/;Secure;HttpOnly + http-response replace-header Set-Cookie (KEYCLOAK_LOCALE=[^;]*);(.*) \1;Domain="${DOMAIN}";Version=1;Path=/;Secure; server keycloak isard-sso-keycloak:8080 check port 8080 inter 5s rise 2 fall 10 resolvers mydns init-addr none backend be_admin diff --git a/docker/haproxy/haproxy.conf b/docker/haproxy/haproxy.conf index 2432074..642f827 100644 --- a/docker/haproxy/haproxy.conf +++ b/docker/haproxy/haproxy.conf @@ -103,7 +103,7 @@ backend be_sso acl existing-x-forwarded-proto req.hdr(X-Forwarded-Proto) -m found http-request add-header X-Forwarded-Host %[req.hdr(Host)] unless existing-x-forwarded-host http-request add-header X-Forwarded-Proto https unless existing-x-forwarded-proto - http-response replace-header Set-Cookie (KEYCLOAK_LOCALE=[^;]*);(.*) \1;Domain="${DOMAIN}";Version=1;Path=/;Secure;HttpOnly + http-response replace-header Set-Cookie (KEYCLOAK_LOCALE=[^;]*);(.*) \1;Domain="${DOMAIN}";Version=1;Path=/;Secure; server keycloak isard-sso-keycloak:8080 check port 8080 inter 5s rise 2 fall 10 resolvers mydns init-addr none backend be_admin