Files
neural-hunt/V4.2.4_VPN_ADMIN_COOKIE_FIX.md
jbergner 1f61989c2d
release-tag / release-image (push) Successful in 4m39s
RC-9
2026-08-11 19:41:59 +02:00

21 lines
774 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# V4.2.4 – VPN Admin Cookie Fix
The public customer portal and the private Customer-Service admin UI now have independent cookie security modes.
Recommended deployment:
```env
# Game admin on VPN/direct HTTP; automatically Secure when placed behind HTTPS.
ADMIN_COOKIE_SECURE=auto
# Public portal remains HTTPS-only.
CS_COOKIE_SECURE=true
# Customer-Service admin on VPN/direct HTTP; automatically Secure behind HTTPS.
CS_ADMIN_COOKIE_SECURE=auto
```
`auto` detects TLS or `X-Forwarded-Proto: https`. A direct HTTP connection through an encrypted VPN therefore receives a non-Secure HttpOnly admin cookie, while an HTTPS reverse proxy receives a Secure cookie.
The public customer session remains independent and HTTPS-only. HSTS is emitted only on HTTPS requests.