Webflow blocks embedding of hosted sites in an iframe using the X-Frame-Options: DENY
and Content-Security-Policy: frame-ancestors 'none'
headers. These settings cannot be modified, which means you cannot embed a Webflow-hosted site within an iframe.
1. Workarounds to Consider
- Host Your Site Elsewhere: Export your Webflow code and host it on your own server, where you can control HTTP headers.
- Embed Specific Webflow Elements: Instead of embedding an entire Webflow site, use Webflow's Embed feature to insert specific components into another site.
- Reverse Proxy Setup: If you control the server where the iframe is placed, you might configure a proxy to fetch the Webflow-hosted content. However, this can introduce performance and security risks.
Summary
Webflow does not allow its sites to be embedded in iframes due to strict security headers. If embedding is necessary, consider self-hosting the exported code or using other workarounds.