Skip to content

docs: document accepted values for APPSMITH_ALLOWED_FRAME_ANCESTORS - #3130

Merged
sebastianiv21 merged 1 commit into
mainfrom
agent/docs-asm-117-frame-ancestors-validation
Dec 3, 2026
Merged

sebastianiv21 merged 1 commit into
mainfrom
agent/docs-asm-117-frame-ancestors-validation

Conversation

@sebastianiv21

Copy link
Copy Markdown
Contributor

Summary

From v2.7.1, Appsmith uses APPSMITH_ALLOWED_FRAME_ANCESTORS (Admin Settings → Embed settings → Limit embedding to certain URLs) only when the value is a space-separated list of CSP frame-ancestors sources. Any other value falls back to 'self' after restart, and saving it in Admin Settings fails. This PR documents that.

Source: appsmithorg/appsmith#42622 (in tags v2.7.1 and later). Rules taken from deploy/docker/fs/opt/appsmith/caddy-reconfigure.mjs and EnvManagerCEImpl.java on release.

Changes

Page Change
getting-started/setup/environment-variables.md Accepted item forms ('self', *, scheme, host source with optional scheme, *. label, port, path), 'none' only alone, empty means 'self'. A :::caution with the v2.7.1 fallback, the exact container log line, and a "Not accepted → Use instead" table.
getting-started/setup/instance-configuration/instance-settings.md Accepted form under Limit embedding to certain URLs and the save error Please enter a valid parameter Allowed frame ancestors. Replaces the X-Frame-Options claim: only Content-Security-Policy is set (no X-Frame-Options in deploy/ or server code on release).
help-and-support/troubleshooting-guide/embedding-csp-errors.md New entry Embedding stopped working after upgrading to v2.7.1 or later (cause, how to confirm, fix). One sentence on the accepted form in the existing entry.
advanced-concepts/embed-appsmith-into-existing-application.mdx Prerequisite bullet says to list domains as space-separated CSP sources.

Verification

  • Every example value on the four pages was run through normalizeFrameAncestors copied verbatim from caddy-reconfigure.mjs on release: 20 "accepted" examples accepted, 7 "not accepted" examples rejected.
  • npm run build in website/: success. No broken-link or broken-anchor warnings for #appsmith_allowed_frame_ancestors or the new links. The anchor exists in the built page.
  • Vale on the four files: 10 findings, all on unchanged lines of instance-settings.md (e.g., en dash). None on the edited lines.

Screenshots

None. No new images.

🤖 Generated with Claude Code

From v2.7.1, Appsmith uses the frame-ancestors setting only when it is a
space-separated list of CSP frame-ancestors sources (appsmithorg/appsmith#42622).
Document the accepted forms, the fallback to 'self' and its log line, the
Admin Settings save error, and a troubleshooting entry for embeds that stop
working after upgrade. Correct the instance settings page, which said the
value is enforced through X-Frame-Options; only Content-Security-Policy is set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
@vercel

vercel Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
appsmith-docs Ready Ready Preview Dec 3, 2026 9:07pm UTC

Request Review

@sebastianiv21
sebastianiv21 marked this pull request as ready for review December 3, 2026 21:30
@sebastianiv21
sebastianiv21 merged commit 21bc120 into main Dec 3, 2026
4 checks passed
@sebastianiv21
sebastianiv21 deleted the agent/docs-asm-117-frame-ancestors-validation branch December 3, 2026 21:30

This branch was successfully deployed

1 active deployment
Preview — 1760469c Deployed Dec 3, 2026 by vercel[bot]
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.

1 participant