Article iFrame fails to load content
Hello All,
When I add the following iFrame tag to an article, it works as expected.
<iframe style="position: fixed; top: 0px; left: 0px; bottom: 0px; right: 0px; width: 100%; height: 100%; border: none; margin: 0; padding: 0; overflow: hidden; z-index: 999999;" src="https://insights.ubuntu.com/2017/09/25/lxd-weekly-status-16/?_ga=2.77703703.2005100014.1506373378-1185809915.1506373378"></iframe>
When I add the same tag to an article AND it has a different src it fails to load the iframe:
<iframe style="position: fixed; top: 0px; left: 0px; bottom: 0px; right: 0px; width: 100%; height: 100%; border: none; margin: 0; padding: 0; overflow: hidden; z-index: 999999;" src="http://www.polar-winter-181019.appspot.com/index.html"></iframe>
The src URL is legitimate and will load, in an HTML page that is NOT a Zendesk Article. The test file is attached for your review.
So, the question is; why does the article fail to load the iFrame?
-
Hi Duke,
The iFrame you are trying to display uses http but to load it on your Zendesk it should be served over https.
Best,
Lotus Themes Team
-
I'm having a problem embedding any iFrame in a Support article. Is anyone else experiencing that?
-
Hi Justin!
Have you enabled unsafe content in Guide? That's the most likely culprit here. You can find out how to do that here.
-
You're right, it works now! Besides iframes, what else does unsafe content disable?
-
Hey Justin!
Allowing unsafe content just lets you embed things that you wouldn't normally be able to, primarily videos and iframes.
Please sign in to leave a comment.
5 Comments