From 8e31f468eb01da3d782c07ac5fbc2fc201399e1e Mon Sep 17 00:00:00 2001 From: Kay Joosten Date: Fri, 11 Sep 2026 11:39:03 +0200 Subject: [PATCH] Set cookie_samesite=none and cookie_secure=true on session cookie for cross-domain SAML POSTs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes OpenConext/Stepup-Gateway#652: the session cookie was dropped by browsers on cross-domain SAML HTTP-POST bindings under the default SameSite=Lax policy. cookie_secure is hardcoded to true (was auto) because this app has no trusted_proxies configured, so auto could resolve to a non-secure cookie behind the HAProxy TLS terminator — and browsers silently drop SameSite=None cookies that aren't marked Secure. --- config/packages/framework.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/packages/framework.yaml b/config/packages/framework.yaml index 20a17c2..683988a 100644 --- a/config/packages/framework.yaml +++ b/config/packages/framework.yaml @@ -13,8 +13,8 @@ framework: # Remove or comment this section to explicitly disable session support. session: handler_id: null - cookie_secure: auto - cookie_samesite: lax + cookie_secure: true + cookie_samesite: none php_errors: router: strict_requirements: null