<?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 Re: Does Sense widget not work for http link? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Does-Sense-widget-not-work-for-http-link/m-p/53080#M3535</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Version is Sense server Feb 2018, 12.5.2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Apr 2018 05:01:14 GMT</pubDate>
    <dc:creator>NZFei</dc:creator>
    <dc:date>2018-04-18T05:01:14Z</dc:date>
    <item>
      <title>Does Sense widget not work for http link?</title>
      <link>https://community.qlik.com/t5/App-Development/Does-Sense-widget-not-work-for-http-link/m-p/53079#M3534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have enabled both http and https in QMC:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/199954_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both are working. I can access hub from http:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/199961_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And from https:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/199962_pastedImage_2.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when I add both links into Sense Widget, http does not work and https works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.qlik.com/legacyfs/online/199963_pastedImage_3.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know why this has happened? In real life, I need to embed a http link from another server. I can open it in web browser in this Sense server but when I embed it into widget, it does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 04:44:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Does-Sense-widget-not-work-for-http-link/m-p/53079#M3534</guid>
      <dc:creator>NZFei</dc:creator>
      <dc:date>2018-04-18T04:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Does Sense widget not work for http link?</title>
      <link>https://community.qlik.com/t5/App-Development/Does-Sense-widget-not-work-for-http-link/m-p/53080#M3535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Version is Sense server Feb 2018, 12.5.2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 05:01:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Does-Sense-widget-not-work-for-http-link/m-p/53080#M3535</guid>
      <dc:creator>NZFei</dc:creator>
      <dc:date>2018-04-18T05:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Does Sense widget not work for http link?</title>
      <link>https://community.qlik.com/t5/App-Development/Does-Sense-widget-not-work-for-http-link/m-p/53081#M3536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fei,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is the server you are trying to display the iframe on using https? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because it is not allowed to embed a http-iframe on a https-site. If you are using Chrome or Firefox you can press F12 and look for error messages in the console.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Mathias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 07:39:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Does-Sense-widget-not-work-for-http-link/m-p/53081#M3536</guid>
      <dc:creator>m_s</dc:creator>
      <dc:date>2018-04-18T07:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Does Sense widget not work for http link?</title>
      <link>https://community.qlik.com/t5/App-Development/Does-Sense-widget-not-work-for-http-link/m-p/53082#M3537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Mathias, that is very helpful!&lt;/P&gt;&lt;P&gt;I made Sense to allow http then I embedded a http link to http Sense widget. It works but I have another strange problem here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I set up a setting variable, which pass the link to the widget:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/200108_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working for the links in the server so &lt;A href="http://win2016fei01/qmc"&gt;http://win2016fei01/qmc&lt;/A&gt;, or &lt;A href="http://win2016fei01/hub"&gt;http://win2016fei01/hub&lt;/A&gt; or &lt;A href="http://win2016fei01/dev-hub"&gt;http://win2016fei01/dev-hub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However if I try any link that is not in the server for example the news website &lt;A href="http://www.nzherald.co.nz/" title="http://www.nzherald.co.nz/"&gt;http://www.nzherald.co.nz/&lt;/A&gt; it does not work. Nothing is showing and no error message is given.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/200109_pastedImage_3.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I embed the external link directly into the html code, it works:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/200110_pastedImage_6.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why did that happen? Anyway to solve it? I just want to use this widget to pass the links including external links to the widget html code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 04:00:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Does-Sense-widget-not-work-for-http-link/m-p/53082#M3537</guid>
      <dc:creator>NZFei</dc:creator>
      <dc:date>2018-04-19T04:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Does Sense widget not work for http link?</title>
      <link>https://community.qlik.com/t5/App-Development/Does-Sense-widget-not-work-for-http-link/m-p/53083#M3538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fei,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this seems to be an issue with angular's "$sce service". I get the following error message in dev-hub:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: [$interpolate:interr] Can't interpolate: {{ settings.property1 }}&lt;/P&gt;&lt;P&gt;Error: [$sce:insecurl] Blocked loading resource from url not allowed by $sceDelegate policy&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Usually you would circumvent this by using the &lt;SPAN style="font-size: 13.3333px;"&gt;"&lt;/SPAN&gt;&lt;CODE style="font-size: 13.3333px; font-style: inherit; font-weight: inherit; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;$sce.trustAsResourceUrl&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;)"-method.&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;This got rid of the error message but unfortunately still did not display the web page so I don't know how solve this :/.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 08:07:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Does-Sense-widget-not-work-for-http-link/m-p/53083#M3538</guid>
      <dc:creator>m_s</dc:creator>
      <dc:date>2018-04-19T08:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Does Sense widget not work for http link?</title>
      <link>https://community.qlik.com/t5/App-Development/Does-Sense-widget-not-work-for-http-link/m-p/53084#M3539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much Mathias.&lt;/P&gt;&lt;P&gt;I have searched and found the official explanation:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.angularjs.org/error/$sce/insecurl" title="https://docs.angularjs.org/error/$sce/insecurl"&gt;https://docs.angularjs.org/error/$sce/insecurl&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks that I have to live with it. Doesn't make much sense that it doesn't even work for the servers in the same domain...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you use the "$sce.trustAsResourceUrl()"-method, can you code that in the html in the widget???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fei&lt;/P&gt;&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; font-size: 13.33px; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN class="pun" style="color: #303336; font-family: inherit; font-style: inherit; font-weight: inherit;"&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 21:20:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Does-Sense-widget-not-work-for-http-link/m-p/53084#M3539</guid>
      <dc:creator>NZFei</dc:creator>
      <dc:date>2018-04-19T21:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Does Sense widget not work for http link?</title>
      <link>https://community.qlik.com/t5/App-Development/Does-Sense-widget-not-work-for-http-link/m-p/53085#M3540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used it like: &amp;lt;iframe src="{{ &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$sce.trustAsResourceUrl(settings.property1) }}"&amp;gt;&amp;lt;/iframe&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Have you tried creating an extension instead of a widget, maybe its working there :/.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Mathias&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 07:27:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Does-Sense-widget-not-work-for-http-link/m-p/53085#M3540</guid>
      <dc:creator>m_s</dc:creator>
      <dc:date>2018-04-20T07:27:22Z</dc:date>
    </item>
  </channel>
</rss>

