Skip to content

docs(app-config): expand cross-origin embedding cookie guidance#64

Merged
lmeyerov merged 3 commits into
masterfrom
docs/cross-origin-cookie-enhance
May 20, 2026
Merged

docs(app-config): expand cross-origin embedding cookie guidance#64
lmeyerov merged 3 commits into
masterfrom
docs/cross-origin-cookie-enhance

Conversation

@albarralnunez
Copy link
Copy Markdown
Contributor

Summary

Expands the existing Application servers cookie section under TLS Hardening with:

  • Explicit defaults: COOKIE_SECURE defaults to false; COOKIE_SAMESITE auto-derives to None when COOKIE_SECURE=true, else Lax.
  • Which cookies are affected: SESSION_COOKIE, CSRF_COOKIE, JWT_AUTH_COOKIE.
  • A DevTools verification recipe (Working: SameSite=None; Secure; Failing: SameSite=Lax).
  • A sub-section for the embedding-host CSP requirements (frame-src / child-src) with a cross-link to the new Louie iframe runbook for the end-to-end three-way (OA2_HOST ↔ Graphistry host ↔ Caddy CSP) checklist.

Why

Discovery deployment hit "This content is blocked" embedding Graphistry into Louie. Root cause was misaligned cookie flags. Operators were unaware that COOKIE_SECURE defaults to false, so cross-origin cookies were getting SameSite=Lax and the browser dropped them inside the embedded iframe.

Related:

Test plan

  • `./build-docs.sh html` builds without errors
  • Rendered page at `app-config/configure.html#tls-hardening` shows the expanded cookie section
  • New sub-headings render: "Defaults and scope", "Verifying cookie behavior", "Embedding host requirements"
  • Cross-link to the Louie iframe runbook resolves (now that PR 200GB disk? #5 is merged)

Files changed

  • `docs/app-config/configure.md` (+21 / −1)

🤖 Generated with Claude Code

albarralnunez and others added 2 commits May 19, 2026 12:26
Trello: https://trello.com/c/i1v1nLMu/228
Issue: graphistry/graphistrygpt#2849
Louie runbook: https://louieai-documentation.readthedocs.io/en/latest/admin/100_Graphistry_Iframe_Blocked.html

Builds on the existing COOKIE_SECURE/COOKIE_SAMESITE block:
- Document defaults (COOKIE_SECURE=false; COOKIE_SAMESITE auto-derives).
- Name the cookies affected (SESSION, CSRF, JWT).
- Add a DevTools verification recipe (working vs failing SameSite).
- Add a sub-section for embedding-host CSP requirements with a
  cross-link to the Louie iframe runbook for an end-to-end example.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Clarify instructions for embedding visualizations in different origin sites.
Copy link
Copy Markdown
Contributor

@lmeyerov lmeyerov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great thank you!

(I clarified one bit as not all folks know what an origin is)

@lmeyerov
Copy link
Copy Markdown
Contributor

@lmeyerov lmeyerov self-requested a review May 20, 2026 20:29
Copy link
Copy Markdown
Contributor

@lmeyerov lmeyerov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pdflatex fails with `LaTeX Error: Unicode character ↔ (U+2194)`
when rendering the embedding-host checklist, breaking the
Read the Docs PDF build for PR #64.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@lmeyerov lmeyerov self-requested a review May 20, 2026 21:37
@lmeyerov lmeyerov merged commit 5533dd0 into master May 20, 2026
1 check passed
@lmeyerov lmeyerov deleted the docs/cross-origin-cookie-enhance branch May 20, 2026 21:39
@albarralnunez
Copy link
Copy Markdown
Contributor Author

Oh, thank you @lmeyerov!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants