hey there guys
hope you are all doing well? so this one will sound a bit weird I know but I need some webflow goodness on our site which already has a cms and a less-than-desirable builder. I do have the plan where I can export my code from webflow, but the cms only has this really basic html, css and javascript integration js is just for a script-tag. so I thought I would create a fab webflow page and impress the heck out of everyone and use an iframe-generator to embed the page and found this iframe generator that I thought I could embed with
I tested it with one of my weblow sites but when I tested the iframe it said that weblow was not allowing me to render.
webflow you are my only hope (excuse the star wars ref) but its true. can I upgrade or do something to make it work?
While it is possible for a site to block themselves from being IFRAME-embedded, to my knowledge Webflow doesnât do that.
CORRECTION - Yes Webflow does block its staged ( *.webflow.io ) sites from embedding, but only in specific circumstances. Read my next post for details.
Itâs difficult to guess what youâre seeing without a readonly link to your site, and seeing the actual <iframe> code youâre embedding in your containing site.
My guess is somethingâs wrong with the iframe code, or that perhaps the containing site is breaking it on render. Can you share the link to the actual site where you have the IFRAME embedded?
Also, IFRAMEs are quite simple, but there are challenges as well- scrollbars, adapting to responsive breakpoints, security âacross the frameâ etc. As long as youâre doing a simple embed you should be fine.
thank you so much for getting back to me
I just took the generated iframe and plonked it into some html in an online editor to see if it worked. sadly though it didnt and I am sort of hoping its the generated iframe thats the problem although I cannot see what I did wrong. I did this:
and it can be viewed here: https://949597.playcode.io/
didnt get around to designing anything yet so I just tested with a few templates
I used this one because its pretty
YES you will be able to IFRAME-embed your Webflow site in another website, once itâs on a paid plan and published to a custom domain name. However you cannot IFRAME embed content from the *.webflow.io staging domain to another domain.
To test this, try embedding these two sites into your playcode.io page;
Both of these are the same site. The first one is the live site on a custom domain, and the second is the staging site on webflow.io.
This happens because web requests made to *.webflow.io return an HTTP header that specifies a content-security-policy restricting where that content can be IFRAME-hosted.
Based on your description, it sounds like you want to integrate a Webflow page with a CMS that has limited HTML, CSS, and JavaScript integration capabilities. Using an iframe-generator to embed your Webflow page might be a good solution in this scenario.
Hey there, I know this is an old issue but by testing your codepen, both URL are not able to be embed in the iframe. I have the same exact issue currently. Please help
Hey Tuck, is your site using ecommerce or memberships?
Iâve noticed that Webflow generates the CSPs slightly differently for these, and you may not be able to IFRAME embed them on any other domain.
Itâs not an ecommerce site and no memberships. We are on a paid plan currently, not sure why is it happening. Even iframing your site sygnal.com is not working now
It tells browsers that your site can only be IFRAMEd inside of pages from the same domain.
The reason why is that you have memberships enabled.
You may never have used it, but at some point you activated it or the template you purchased had it activated.
If you go here, you can see Webflowâs memberships sign-up page.
https://www.butter.us/sign-up
Really nothing you can do to remove it. Even Webflow support cannot remove memberships or commerce, apparently.
Two options;
completely rebuild your site, this time, no memberships or ecommerce activation.
hack your headers with a reverse proxy. Iâm not sure what your use case here is for being embedded in an IFRAME, but you can create, e.g. embed, butter.us for that special purpose, or proxy your whole site for everyone, and rewrite that header.
You might contact Webflow and see if they have a means to change that rule per-site. Iâve never seen that done, but canât hurt to ask.
Although Webflow blocks this to mitigate the risk of membership hacking, in your case, youâre not actually using Webflowâs memberships. Youâll have to decide whether youâre ok with clickjacking risks, etc.
If you have a specific domain youâd be IFRAMEd in, you can restrict it to that trusted domain for safety.