Skip to content

Document settings.iframe.allowed-parent-origins in site settings and em… - #7016

Open
fern-api[bot] wants to merge 1 commit into
mainfrom
2026-09-18-fern-ai-1fb7a4-d9f1c6c5
Open

fern-api[bot] wants to merge 1 commit into
mainfrom
2026-09-18-fern-ai-1fb7a4-d9f1c6c5

Conversation

@fern-api

@fern-api fern-api Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Added documentation for the new settings.iframe.allowed-parent-origins docs.yml key in two places. In the Settings configuration section of the site settings page, a new settings.iframe <ParamField> entry (with a nested settings.iframe.allowed-parent-origins field) was added after settings.substitute-env-vars, along with iframe in the YAML example block. In the embedded mode page, a new "Allow third-party origins to frame your docs" section was added between "Enable embedded mode" and "Embed external pages", explaining the default CSP frame-ancestors behavior and how to configure specific origins without using ?embedded=true.

- https://*.example.com
```

Each entry must be a valid CSP host source (`scheme://host[:port]`). Wildcards on the host label (`https://*.example.com`) are supported; bare `*`, keyword sources, and scheme-only values are rejected. The configured origins are appended to the default `frame-ancestors`, so `'self'` and `https://*.buildwithfern.com` remain in place.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📝 [vale] <FernStyles.Acronyms> reported by reviewdog 🐶
'CSP' has no definition.


<Indent>
<ParamField path="settings.iframe.allowed-parent-origins" type="list of strings" required={false} toc={true}>
A list of origins to append to the `Content-Security-Policy: frame-ancestors` directive, allowing those origins to embed your docs in an iframe. Each entry must be a valid CSP host source of the form `scheme://host[:port]` (e.g. `https://app.example.com`, `https://*.example.com`). Bare wildcards (`*`), keyword sources (`'none'`, `'self'`), scheme-only sources (`https:`), and entries with paths are rejected.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📝 [vale] <FernStyles.Acronyms> reported by reviewdog 🐶
'CSP' has no definition.

@github-actions

Copy link
Copy Markdown
Contributor

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.

0 participants