Closed AnRei123 closed 2 years ago
@AnRei123, thank you for opening this issue. We will triage it within the next few business days.
Hi @AnRei123
I was unable to reproduce the issue. I used this snippet of code, and it works just fine even after publishing.
<html>
<head></head>
<body>
<h2>Here the iframe content</h2>
<iframe style="height: 1000px" src="https://bing.com/" scrolling="yes"></iframe>
</body>
</html>
We don't support your HTML code. Just one idea that comes to my mind, your https://kb.<hostname>
website might be set-up to block being displayed on a different domain. But it might not be the cause though.
If you believe your code works and the issue is on our side, provide me with the name of your API Management service.
@AnRei123, we need more information before we start working on this issue. If you prefer to share it in private, please send us an email to apimportalfeedback@microsoft.com with the issue number in its subject.
@AnRei123, do you mind sending your published portal link or service name (I know you guys have lot of them) to apimportalfeedback@microsoft.com, so we could take a closer look at repro?
@AnRei123, I'm closing the issue for now, since @JMach1 is following up with you offline. If you still need help, please feel free to either shoot us another email or re-open this issue, we'll be happy to assist.
Bug description
I added a "Custom HTML Code" widget in order to add an iframe to my DevPortal page that shows a web page where our external wikis are hosted.
I added the following custom html code to the "Custom HTML Code" widget, saved and published the portal:
But in the published page, the contents of the
iframe src="https://kb.<hostname>"
are not displayed. Instead the frame remains empty.Expected behavior
For us it is very important to be able to embed web pages from external sources into the Developer Portal. Is there anything wrong with my custom html snippet or do you still not support iframes in the "Custom HTML Code" widget yet? Is there any way, how I would be able to show the content area of a website through any other mechanism (workaround)?
Is your portal managed or self-hosted?
Managed
Additional information
I wasn´t able to find any help for this use case on the following Microsoft docs page: https://docs.microsoft.com/en-us/azure/api-management/developer-portal-faq#how-do-i-add-custom-html-to-my-developer-portal
On the referenced Microsoft docs page, there is a very irritating note that I do not understand in the embedded context: