How can we remove the X-Frame-Options and Content-Security-Policy headers in Webflow to enable embedding our website in another website?

Published on
September 22, 2023

To remove the X-Frame-Options and Content-Security-Policy headers in Webflow and enable embedding your website in another website, you will need to follow these steps:

  1. Log in to your Webflow account and navigate to the Project Settings for the specific project you want to modify.
  2. Go to the Hosting tab, which is located at the top of the Project Settings page.
  3. Scroll down to the section labeled "Security Headers."
  4. By default, Webflow adds the X-Frame-Options header with the value "SAMEORIGIN" and the Content-Security-Policy header with its own predefined set of values to ensure security.
  5. To remove these headers, click on the text box next to "Additional security headers" and delete the existing values.
  6. Save your changes by clicking on the "Save Changes" button at the top right corner of the page.

By removing the X-Frame-Options and Content-Security-Policy headers, you allow other websites to embed your Webflow site using the iframe tag. However, it is crucial to be aware of the security implications when disabling these headers, as they are in place to protect your site from clickjacking attacks and other vulnerabilities.

Note: When removing these headers, it is essential to consider the security implications thoroughly and ensure that your website is adequately protected against potential security risks.

Additional questions:

  1. How do I modify the security headers in Webflow?
  2. What is the purpose of X-Frame-Options and Content-Security-Policy headers?
  3. How can I enable embedding of a Webflow site in another website?