As jeum explained, no iframe cubes, it just won't work. If you can override the directive using a meta tag, it can work, but you cannot :
Please note that this token must be sent as an HTTP header and the directive will be ignored if found in the META tag of HTTP-EQUIV.
Thus, it does not work with iframe. But should it really be an iframe? Since loading the script will still work, you can do something like this:
Script on your site (call him load_content.js ):
var node = document.createElement('div') node.innerHTML = '{place your code encoded as a JS string here}' document.appendChild(node)
And then use it from other sites:
<script src="{URL to load_content.js}"></script>
Of course, this has some security implications for the sites on which you use it, but this may be enough for your needs.
OTOH, why don't you just post this content elsewhere? A small virtual server is definitely not expensive (if you donβt need tons of RAM and hard disk space) (maybe I pay 6 β¬ per month or so), and even if you canβt afford to pay money, there are sites that allows you to host multiple html pages for free, I think.
thejh source share