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

09-07-2017 02:52 PM
Occasional Contributor

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='' frameborder='0' scrolling='no'></iframe>‍‍

Refused to display '' in a frame because it set 'X-Frame-Options' to 'deny'.

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?


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


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

Occasional Contributor

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

0 Kudos