<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Custom Visual Web Page in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Web-Page/m-p/1130574#M23951</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create a Visual that just displays a web-page. The Url would be data driven.&lt;/P&gt;&lt;P&gt;As I'm a complkete TypeScript newbie I would first like to inform if this would be possible ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards, Harry&lt;/P&gt;</description>
    <pubDate>Sat, 30 May 2020 10:02:20 GMT</pubDate>
    <dc:creator>LeboeufHarry</dc:creator>
    <dc:date>2020-05-30T10:02:20Z</dc:date>
    <item>
      <title>Custom Visual Web Page</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Web-Page/m-p/1130574#M23951</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create a Visual that just displays a web-page. The Url would be data driven.&lt;/P&gt;&lt;P&gt;As I'm a complkete TypeScript newbie I would first like to inform if this would be possible ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards, Harry&lt;/P&gt;</description>
      <pubDate>Sat, 30 May 2020 10:02:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Web-Page/m-p/1130574#M23951</guid>
      <dc:creator>LeboeufHarry</dc:creator>
      <dc:date>2020-05-30T10:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual Web Page</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Web-Page/m-p/1134218#M23969</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/229880"&gt;@LeboeufHarry&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Custom visuals are themselves hosted in a &lt;A href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe" target="_self"&gt;iframe.&lt;/A&gt; The only &lt;A href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#attr-sandbox" target="_self"&gt;sandbox&lt;/A&gt; attribute set is &lt;FONT face="courier new,courier"&gt;allow-scripts&lt;/FONT&gt;, so custom visuals are not very permissive.&lt;/P&gt;
&lt;P&gt;In order to embed a web page, you'll need to add an additional iframe element to your visual and then its &lt;FONT face="courier new,courier"&gt;src&lt;/FONT&gt; attribute would need to be the data-driven URL. You'll therefore need to consider:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Whether your intended URL can be embedded in an iframe to begin with.
&lt;UL&gt;
&lt;LI&gt;Some websites or web apps explicitly block this cross-domain (using an &lt;FONT face="courier new,courier"&gt;X-Frame-Options&lt;/FONT&gt; setting on their side of things). If the web site is hosted or managed by yourself then you can probably manage this appropriately.&lt;/LI&gt;
&lt;LI&gt;If this is the case then you won't be able to use a custom visual.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;If #1 works, then you will need to see if hosting that iframe in a sandboxed iframe (the custom visual container) still works, as:
&lt;UL&gt;
&lt;LI&gt;The sandboxing permissions applied to it may have downstream effects.&lt;/LI&gt;
&lt;LI&gt;The sandboxing removes the domain from the custom visual iframe so that it does not belong to powerbi.com.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Without getting into developing custom visuals, you would previously have been able to test this in Power BI using the HTML viewer custom visual, but that &lt;A href="https://community.powerbi.com/t5/Mobile-Apps/Why-I-cannot-find-quot-HTML-Viewer-quot-in-Power-BI/td-p/1012465" target="_self"&gt;seems to have disappeared recently&lt;/A&gt;. I know that when people have tried this approach with certain sites, they might work in the Power BI Service (online) but not in Power BI Desktop due to some differences in how they work (this probably has something to do with the service being identified as powerbi.com but Desktop technically not being hosted at a specific loaction on the web... I haven't looked into it in great detail).&lt;/P&gt;
&lt;P&gt;However, &lt;SPAN style="font-family: inherit;"&gt;you could so a simple proof-of-concept test outside of Power BI with a .html file. Something like the following HTML could simulate an iframe being hosted in a custom visual's iframe:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;html&amp;gt;
&amp;lt;body&amp;gt;

&amp;lt;!-- Simulating a sandboxed iframe (custom visual) --&amp;gt;
&amp;lt;iframe sandbox="allow-scripts" height="300" width="300"&amp;gt;

	&amp;lt;!-- Page we want to see --&amp;gt;
    &amp;lt;iframe src="https://www.google.com"&amp;gt;
    &amp;lt;/iframe&amp;gt;

&amp;lt;/iframe&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;(note that google.com definitely won't work as they do have the permissions detailed in#1 above set; this is just so that you can see where I'd be coding my intended URL).&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 21:36:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Web-Page/m-p/1134218#M23969</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2020-06-01T21:36:11Z</dc:date>
    </item>
  </channel>
</rss>

