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

3329
2
09-07-2017 02:52 PM
mfcallahan
Occasional Contributor II

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.

2 Replies
by Anonymous User
Not applicable

Hi,

Is your map shared publicly or does it require for users to log in?

mfcallahan
Occasional Contributor II

The web app, web map (and all the feature layers I created and included in the map) are set to share publicly.   

0 Kudos