<?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: How to use iframe in Splunk 8.x? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-iframe-in-Splunk-8-x/m-p/467600#M1765</link>
    <description>&lt;P&gt;Hi @PavelP,&lt;BR /&gt;
Thanks for pointing me this way for some reference. This page in the app fails to load the iframe referenced in the code in my 8.0.1 production and development environments. I checked my 7.3.1 environment and it loads correctly. This is essentially the problem I'm still having - that iframe doesn't seem to be working in 8.0.1 for me.&lt;/P&gt;

&lt;P&gt;For images, I tend to use &lt;CODE&gt;img&lt;/CODE&gt; instead of &lt;CODE&gt;iframe&lt;/CODE&gt;, but good to know that is an option.&lt;/P&gt;

&lt;P&gt;To your last point, I am able to load a remote web page using iframe in 7.3.1 and 7.0.0 environments and have done so with many different web pages. The exact XML above works in those 7.x environments.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Apr 2020 17:36:41 GMT</pubDate>
    <dc:creator>gilmanc</dc:creator>
    <dc:date>2020-04-08T17:36:41Z</dc:date>
    <item>
      <title>How to use iframe in Splunk 8.x?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-iframe-in-Splunk-8-x/m-p/467598#M1763</link>
      <description>&lt;P&gt;Hi Folks, &lt;BR /&gt;Has anyone had success with using iframes in Splunk Enterprise 8.x yet? I have tested in multiple 8.0.1 environments and the panel fails to load, while the same code is working on 7.0.0 and 7.3.1 environments. Nothing I have seen from older posts is working yet. Here is the simple XML to try:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel&amp;gt;
  &amp;lt;title&amp;gt;COVID test for iFrame compatibility&amp;lt;/title&amp;gt;
  &amp;lt;html&amp;gt;
    &amp;lt;center&amp;gt;
      &amp;lt;iframe src="https://covid-19.splunkforgood.com/coronavirus__covid_19_" width="100%" height="800px"/&amp;gt;
    &amp;lt;/center&amp;gt;
  &amp;lt;/html&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Jun 2020 04:04:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-iframe-in-Splunk-8-x/m-p/467598#M1763</guid>
      <dc:creator>gilmanc</dc:creator>
      <dc:date>2020-06-08T04:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to use iframe in Splunk 8.x?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-iframe-in-Splunk-8-x/m-p/467599#M1764</link>
      <description>&lt;P&gt;Hello gilmanc,&lt;/P&gt;

&lt;P&gt;here is an example from Splunk Dashboard Examples app (&lt;A href="https://splunkbase.splunk.com/app/1603/):"&gt;https://splunkbase.splunk.com/app/1603/):&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Dashboard Display Controls&amp;lt;/label&amp;gt;
  &amp;lt;description&amp;gt;Turn on or off display of common components like the header, title, edit controls.&amp;lt;/description&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;h2&amp;gt;Example iframe of a dashboard&amp;lt;/h2&amp;gt;
        &amp;lt;p&amp;gt;Uses display controls via the http get param&amp;lt;/p&amp;gt;
        &amp;lt;code&amp;gt;
          &amp;lt;![CDATA[&amp;lt;iframe src="/app/simple_xml_examples/simple_display_controls_example?hideChrome=true&amp;amp;hideEdit=true"&amp;gt;]]&amp;gt;
        &amp;lt;/code&amp;gt;


        &amp;lt;iframe src="/app/simple_xml_examples/simple_display_controls_example?hideChrome=true&amp;amp;amp;hideEdit=true" width="100%" height="400" border="0" frameborder="0"/&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the simple XML reference (&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.2/Viz/PanelreferenceforSimplifiedXML#html"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.2/Viz/PanelreferenceforSimplifiedXML#html&lt;/A&gt;) shows three ways to use src attribute, all of them point to the file on the same splunk server: &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;HTML file from the same app context&lt;/LI&gt;
&lt;LI&gt;HTML file from a different app context&lt;/LI&gt;
&lt;LI&gt;Image file&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Until somebody corrects me, it seems that it is not possible to embed a web page from a remote server using iframe. Splunk converts html from simple XML to a javascript variable and builds the dashboard dynamically, sanitizing the input - where ( I think ) external references are being filtered out.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 05:33:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-iframe-in-Splunk-8-x/m-p/467599#M1764</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-04-07T05:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to use iframe in Splunk 8.x?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-iframe-in-Splunk-8-x/m-p/467600#M1765</link>
      <description>&lt;P&gt;Hi @PavelP,&lt;BR /&gt;
Thanks for pointing me this way for some reference. This page in the app fails to load the iframe referenced in the code in my 8.0.1 production and development environments. I checked my 7.3.1 environment and it loads correctly. This is essentially the problem I'm still having - that iframe doesn't seem to be working in 8.0.1 for me.&lt;/P&gt;

&lt;P&gt;For images, I tend to use &lt;CODE&gt;img&lt;/CODE&gt; instead of &lt;CODE&gt;iframe&lt;/CODE&gt;, but good to know that is an option.&lt;/P&gt;

&lt;P&gt;To your last point, I am able to load a remote web page using iframe in 7.3.1 and 7.0.0 environments and have done so with many different web pages. The exact XML above works in those 7.x environments.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 17:36:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-iframe-in-Splunk-8-x/m-p/467600#M1765</guid>
      <dc:creator>gilmanc</dc:creator>
      <dc:date>2020-04-08T17:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use iframe in Splunk 8.x?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-iframe-in-Splunk-8-x/m-p/467601#M1766</link>
      <description>&lt;P&gt;I &lt;EM&gt;definitely&lt;/EM&gt; would open a support case on this.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 19:54:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-iframe-in-Splunk-8-x/m-p/467601#M1766</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-04-08T19:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to use iframe in Splunk 8.x?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-iframe-in-Splunk-8-x/m-p/467602#M1767</link>
      <description>&lt;P&gt;Thank you @gilmanc for the feedback, good to know! Never used iframe for a dashboard before. I hope you'll figure it out why it doesn't work.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 20:50:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-iframe-in-Splunk-8-x/m-p/467602#M1767</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-04-08T20:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to use iframe in Splunk 8.x?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-iframe-in-Splunk-8-x/m-p/467603#M1768</link>
      <description>&lt;P&gt;May want to check on the web.conf in your app/default/ folder.  If it doesn't exist, you can create one and add the configurations that you want within your app.   iframe is disabled in Splunk 8 by default for security reasons. &lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.3/Admin/Webconf" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.3/Admin/Webconf&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[settings] 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;dashboard_html_allow_embeddable_content= true/false &lt;BR /&gt;
   dashboard_html_allow_iframes  = true/false (default = false)&lt;/P&gt;

&lt;P&gt;***** From the URL related to web.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;dashboard_html_allow_inline_styles = &amp;lt;boolean&amp;gt;
* Whether or not to allow style attributes from inline HTML elements in dashboards.
* If "false", style attributes from inline HTML elements in dashboards will be removed 
  to prevent potential attacks.
* Default: true

dashboard_html_allow_embeddable_content = &amp;lt;boolean&amp;gt;
* Whether or not to allow &amp;lt;embed&amp;gt; and &amp;lt;iframe&amp;gt; HTML elements in dashboards.
* If set to "true", &amp;lt;embed&amp;gt; and &amp;lt;iframe&amp;gt; HTML elements in dashboards will not be removed 
  and can lead to a potential security risk.
* If set to the default value of "false", &amp;lt;embed&amp;gt; and &amp;lt;iframe&amp;gt; HTML elements will be stripped
  from the dashboard HTML.
* Default: false

dashboard_html_wrap_embed = &amp;lt;boolean&amp;gt;
* Whether or not to wrap &amp;lt;embed&amp;gt; HTML elements in dashboards with an &amp;lt;iframe&amp;gt;.
* If set to "false", &amp;lt;embed&amp;gt; HTML elements in dashboards will not be wrapped, leading to
  a potential security risk.
* If set to "true", &amp;lt;embed&amp;gt; HTML elements will be wrapped by an &amp;lt;iframe sandbox&amp;gt; element to help
  mitigate potential security risks.
* Default: true

dashboard_html_allow_iframes = &amp;lt;boolean&amp;gt;
* Whether or not to allow iframes from HTML elements in dashboards.
* If "false", iframes from HTML elements in dashboards will be removed to prevent
  potential attacks.
* Default: true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:02:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-iframe-in-Splunk-8-x/m-p/467603#M1768</guid>
      <dc:creator>sbland_splunk</dc:creator>
      <dc:date>2020-09-30T05:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to use iframe in Splunk 8.x?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-iframe-in-Splunk-8-x/m-p/467604#M1769</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/30595"&gt;@sbland_splunk&lt;/a&gt; Thank you, this did it for me! I also heard back from Support via a ticket with the same response. For my environment, dashboard_html_allow_iframes was set to true and dashboard_html_allow_embeddable_content was set to false by default. So I had to add to my etc\system\local\web.conf the dashboard_html_allow_embeddable_content = true under [settings] and it worked after a restart!&lt;BR /&gt;
Some other good details from Support:&lt;BR /&gt;
Based on the description of the case, after reviewing the Splunk documentation for Splunk version 8.0.1, I found out that Splunk has removed some features in version 8.0.x, including &lt;BR /&gt;
 &lt;CODE&gt;&amp;lt;iframe&amp;gt;&lt;/CODE&gt; and &lt;CODE&gt;&amp;lt;embed&amp;gt;&lt;/CODE&gt;, please take a look on below link which contains the information about it:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.3/ReleaseNotes/Deprecatedfeatures#Removed_features_in_version_8.0" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.3/ReleaseNotes/Deprecatedfeatures#Removed_features_in_version_8.0&lt;/A&gt; In the above link it is recommended to use "html_allow_embeddable_content" flag in web.conf instead of &lt;CODE&gt;&amp;lt;iframe&amp;gt;&lt;/CODE&gt; and &lt;CODE&gt;&amp;lt;embed&amp;gt;&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:01:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-iframe-in-Splunk-8-x/m-p/467604#M1769</guid>
      <dc:creator>gilmanc</dc:creator>
      <dc:date>2020-09-30T05:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to use iframe in Splunk 8.x?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-iframe-in-Splunk-8-x/m-p/467605#M1770</link>
      <description>&lt;P&gt;See &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/30595"&gt;@sbland_splunk&lt;/a&gt;'s answer for the solution&lt;BR /&gt;
Set dashboard_html_allow_embeddable_content = true in local web.conf settings stanza&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:02:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-iframe-in-Splunk-8-x/m-p/467605#M1770</guid>
      <dc:creator>gilmanc</dc:creator>
      <dc:date>2020-09-30T05:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to use iframe in Splunk 8.x?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-iframe-in-Splunk-8-x/m-p/532073#M4358</link>
      <description>&lt;P&gt;I was still having this problem in 8.0.6 despite having the the following settings set to true (was trying to view an embedded report from another Splunk server):&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;dashboard_html_allowed_embeddable_content = true&lt;BR /&gt;dashboard_html_allow_iframes = true&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;What ultimately fixed it in our case was upgrading to 8.1.0 and adding the new setting&amp;nbsp;dashboard_html_allowed_domains and setting the specific hostname and port (would not work with just the hostname or wildcard domain for some reason) like so:&lt;/P&gt;&lt;PRE&gt;dashboard_html_allowed_domains = &amp;lt;hostname&amp;gt;.&amp;lt;company_domain&amp;gt;:8000&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 20:30:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-iframe-in-Splunk-8-x/m-p/532073#M4358</guid>
      <dc:creator>worshamn</dc:creator>
      <dc:date>2020-12-04T20:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to use iframe in Splunk 8.x?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-iframe-in-Splunk-8-x/m-p/542517#M5162</link>
      <description>&lt;P&gt;But while executing inspect over that application which has settings in web.conf its giving error -&lt;/P&gt;&lt;P&gt;splunk-appinspect | Web.conf File Standards Ensure that web.conf is safe for cloud deployment and&lt;BR /&gt;splunk-appinspect | that any exposed patterns match endpoints defined by the app - apps should not&lt;BR /&gt;splunk-appinspect | expose endpoints other than their own. Including web.conf can have adverse&lt;BR /&gt;splunk-appinspect | impacts for cloud. Allow only [endpoint:*] and [expose:*] stanzas, with expose&lt;BR /&gt;splunk-appinspect | only containing pattern= and methods= properties. web.conf&lt;BR /&gt;splunk-appinspect | Check that web.conf only defines [endpoint:] and [expose:] stanzas,&lt;BR /&gt;splunk-appinspect | with [expose:*] only containing pattern= and methods=.&lt;BR /&gt;splunk-appinspect | FAILURE: Only the [endpoint:*] and [expose:*] stanzas are&lt;BR /&gt;splunk-appinspect | permitted in web.conf for cloud. Please remove this stanza from&lt;BR /&gt;splunk-appinspect | web.conf: [settings]. File: default/web.conf Line Number: 1&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 09:15:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-iframe-in-Splunk-8-x/m-p/542517#M5162</guid>
      <dc:creator>vishwa0220</dc:creator>
      <dc:date>2021-03-05T09:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to use iframe in Splunk 8.x?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-iframe-in-Splunk-8-x/m-p/550372#M5726</link>
      <description>&lt;P&gt;Adding the following to web.conf fixed it for me, using Splunk 8.1.3:&lt;/P&gt;&lt;PRE&gt;[settings]&lt;BR /&gt;dashboard_html_allowed_embeddable_content = true&lt;BR /&gt;dashboard_html_allowed_domains = &amp;lt;hostname&amp;gt;.&amp;lt;company_domain&amp;gt;:8000&lt;/PRE&gt;&lt;P&gt;=== Addition ===&lt;/P&gt;&lt;P&gt;Above settings worked for a single instance.&lt;/P&gt;&lt;P&gt;In our clustered environment I got it working for accounts that log in using SAML by adding the following to web.conf:&lt;/P&gt;&lt;PRE&gt;[settings]&lt;BR /&gt;dashboard_html_allowed_embeddable_content = true&lt;BR /&gt;dashboard_html_allowed_domains = &amp;lt;hostname&amp;gt;.&amp;lt;company_domain&amp;gt;:8000, microsoftonline.com&lt;BR /&gt;x_frame_options_sameorigin = false&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Local accounts still get an error.&lt;/P&gt;&lt;P&gt;When looking at the console of my browser (F12 -&amp;gt; Console), I saw a 404 error mentioning the second domain that needed to be allowed.&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 08:39:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-iframe-in-Splunk-8-x/m-p/550372#M5726</guid>
      <dc:creator>sanderdenheijer</dc:creator>
      <dc:date>2021-05-07T08:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to use iframe in Splunk 8.x?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-iframe-in-Splunk-8-x/m-p/580833#M11139</link>
      <description>&lt;P&gt;Has something changed in 8.2.3 that would have broken this functionality?&lt;BR /&gt;&lt;BR /&gt;We had this working up until a recent splunk upgrade and then it suddenly stopped:&amp;nbsp; I've confirmed that we are using the options above as well as the following sandbox options:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;iframe sandbox="allow-same-origin allow-scripts allow-popups allow-forms" src="/app/lookup_editor/lookup_edit?lookup=$watchlist$&amp;amp;amp;namespace=MyAppTest&amp;amp;amp;type=csv&amp;amp;amp;owner=nobody" width="100%" height="400" border="0" frameborder="0"/&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Now it just says loading....&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 17:52:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-iframe-in-Splunk-8-x/m-p/580833#M11139</guid>
      <dc:creator>mjones414</dc:creator>
      <dc:date>2022-01-12T17:52:00Z</dc:date>
    </item>
  </channel>
</rss>

