SYSTEM MESSAGE: WELCOME TO THE MANTiS DIRECTORY LISTING. IF IT IS YOUR FIRST VISIT, CHECK OUT THE FAQ BEFORE POSTING.
MEMBERS: 6 | THREADS: 20 | POSTS: 70  ·  NEWEST: BOOT_SECTOR

TIGHTENING THE COOKIE FLAGS — SAMESITE=STRICT BROKE EMBEDS

POSTED BY BOOT_SECTOR ON 10-22-2026 02:02 PM

Quick post-mortem on a self-inflicted wound.

On the 21st I flipped the session cookie from samesite=Lax to samesite=Strict across the board. CSRF surface reduced, fewer session-riding vectors, should be a pure win.

Broke every embed of the leaderboard on the OSH arcade site within an hour. The iframe load happens without a top-level navigation, so the cookie is not sent, the user is treated as a guest, and the personal best column goes blank.

Reverted to Lax on the 22nd. Embeds came back. The CSRF tradeoff is real but acceptable as long as the CSRF token is checked on every state-changing POST.

Lesson: samesite=Strict is correct for an isolated app. If you serve embeds, samesite=Lax plus a real CSRF token is the answer. Do not skip the token.

// POSTS

Noted. We do not get embedded traffic here anyway so Strict is fine for us, but worth flagging in case someone wants to mirror. The embeds on the OSH site are the only external surface we have.
POSTED BY ADMIN ON 10-22-2026 06:30 PM
Same happened on my gallery. Switched to Lax and the embeds came back. The CSRF tradeoff is acceptable if you have a real token — and you do. Strict is correct for an isolated app, Lax plus a token is correct for everything that gets embedded.
POSTED BY VECTOR_EYE ON 10-23-2026 10:15 AM