Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions docs/widgets/iframe/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,24 @@ for security reasons, as users could easily be tricked
by embeding the original site on a malicious page.

Some proxies disallow iframes by default for this reason.
You can use https://iframetester.com/ to check, if the site is allowing iframes.
If you manage all of your own applications, you can usually change that.
You can use https://iframetest.com to check, if the site is allowing iframes.

If you manage all of your own applications, you can usually change that by configuring
the appropriate headers (such as `X-Frame-Options` or `Content-Security-Policy`) to allow iframes.

For example, to allow your site to be embedded in iframes from specific domains:

**Apache (.htaccess or httpd.conf):**
```apache
Header set Content-Security-Policy "frame-ancestors 'self' https://trusted-domain.com"
Header set X-Frame-Options "ALLOW-FROM https://trusted-domain.com"
```

**Nginx:**
```nginx
add_header Content-Security-Policy "frame-ancestors 'self' https://trusted-domain.com";
add_header X-Frame-Options "ALLOW-FROM https://trusted-domain.com";
```

### Example URLs

Expand Down