Files
gitbook/packages
Claude a679eb21b1 Fix customization/theme preview being lost when navigating inside the preview (RND-12191)
The site preview runs in a cross-site iframe. The preview cookie that carries
the unsaved customization (and theme) override was set with SameSite=Lax, so the
browser withheld it on in-iframe navigations: the first page reflected the
override (it comes from the ?customization= query param) but clicking to another
page sent no param and no cookie, so the middleware fell back to the saved
settings and the change disappeared.

Send the preview cookie with SameSite=None + Secure in production, mirroring the
visitor cookies that already have to survive this same iframe
(getResponseCookiesForVisitorAuth). Dev stays same-origin so no attributes are
needed there. SameSite=None requires Secure, so both are gated on production.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DwxstGi1QSoV6NQBdVDBye
2026-08-10 00:22:06 +00:00
..
2025-10-15 13:30:24 +02:00
2026-07-06 12:52:44 +00:00
2026-05-19 13:24:41 +02:00