<?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: Error &amp;quot;Refused to display in a frame because it set 'X-Frame-Options' to 'deny'&amp;quot; when embedding web app in iframe in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/error-quot-refused-to-display-in-a-frame-because/m-p/611034#M30520</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The web app, web map (and all the feature layers I created and included in the map) are set to share publicly.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Sep 2017 23:17:27 GMT</pubDate>
    <dc:creator>mfcallahan</dc:creator>
    <dc:date>2017-09-10T23:17:27Z</dc:date>
    <item>
      <title>Error "Refused to display in a frame because it set 'X-Frame-Options' to 'deny'" when embedding web app in iframe</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/error-quot-refused-to-display-in-a-frame-because/m-p/611032#M30518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Today I've started getting this error message when attempting to view my we bpage which contains an embedded AGOL web app in an iframe:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;iframe&lt;/SPAN&gt;&lt;SPAN class="style-attr language-css token"&gt;&lt;SPAN class="attr-name token"&gt; &lt;SPAN class="attr-name token"&gt;style&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;="&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="property token"&gt;height&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; 90vh&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;src&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;'&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.arcgis.com%2Fapps%2FView%2Findex.html%3Fappid" target="_blank"&gt;http://www.arcgis.com/apps/View/index.html?appid&lt;/A&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;...&lt;SPAN class="punctuation token"&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;frameborder&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;'&lt;/SPAN&gt;0&lt;SPAN class="punctuation token"&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;scrolling&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;'&lt;/SPAN&gt;no&lt;SPAN class="punctuation token"&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;/&lt;/SPAN&gt;iframe&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;‍‍&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG __jive_id="370275" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/370275_error.png" style="width: 620px; height: 75px;" /&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Refused to display 'https://www.arcgis.com/home/signin.html?returnUrl=http%3A//www.arcgis.com/apps/View/index.html%3Fappid%...' in a frame because it set 'X-Frame-Options' to 'deny'.
GET https://www.arcgis.com/home/signin.html?returnUrl=http%3A//www.arcgis.com/apps/View/index.html%3Fappid%... net::ERR_BLOCKED_BY_RESPONSE&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm just wondering if there's anything I need to configure in the map or app itself in order to ensure it displays on my page, regardless of whether the client is logged into ArcGIS Online in their browser or not.&amp;nbsp; Or is it not possible to disaply a web map/app in an iframe if the client is not logged into AGOL?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H5 id="toc-hId-1170510646"&gt;&lt;STRONG&gt;edit:&lt;/STRONG&gt;&lt;/H5&gt;&lt;P&gt;I'm marking this as "assumed answered" as the cause of the issue was determined to be a layer in the map did not have the proper sharing settings. I set the layer to share with the public, and the embedded app displayed correctly in my web page.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:41:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/error-quot-refused-to-display-in-a-frame-because/m-p/611032#M30518</guid>
      <dc:creator>mfcallahan</dc:creator>
      <dc:date>2021-12-12T16:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error "Refused to display in a frame because it set 'X-Frame-Options' to 'deny'" when embedding web app in iframe</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/error-quot-refused-to-display-in-a-frame-because/m-p/611033#M30519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is your map shared publicly or does it require for users to log in?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Sep 2017 22:39:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/error-quot-refused-to-display-in-a-frame-because/m-p/611033#M30519</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-09-10T22:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error "Refused to display in a frame because it set 'X-Frame-Options' to 'deny'" when embedding web app in iframe</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/error-quot-refused-to-display-in-a-frame-because/m-p/611034#M30520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The web app, web map (and all the feature layers I created and included in the map) are set to share publicly.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Sep 2017 23:17:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/error-quot-refused-to-display-in-a-frame-because/m-p/611034#M30520</guid>
      <dc:creator>mfcallahan</dc:creator>
      <dc:date>2017-09-10T23:17:27Z</dc:date>
    </item>
  </channel>
</rss>

