AnsweredAssumed Answered

Error "Refused to display in a frame because it set 'X-Frame-Options' to 'deny'" when embedding web app in iframe

Question asked by c_sharp_dotnet on Sep 7, 2017
Latest reply on Sep 10, 2017 by c_sharp_dotnet

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:

<iframe style="height: 90vh" src='http://www.arcgis.com/apps/View/index.html?appid=...' frameborder='0' scrolling='no'></iframe>

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

 

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.  Or is it not possible to disaply a web map/app in an iframe if the client is not logged into AGOL?

 

edit:

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.

Outcomes