Select to view content in your preferred language

Portal: How to fix Refused to display in a frame because it set ‘X-Frame-Options’ to ‘sameorigin’

2747
2
07-23-2020 03:04 PM
AlecColarusso
Occasional Contributor

Hello,

I am attempting to link a survey through ArcGIS Hub that is hosted on an Enterprise Portal, and when signed in I can not access the survey. It gives a Refused to display in a frame because it set ‘X-Frame-Options’ to ‘sameorigin’

Is there a way to change the X frame options on the portal to allow the survey to be embedded into the Hub?

I tried adding the Hub to the allow origins and that did not seem to work

 

Thank you,

Alec

2 Replies
RachelSears
Frequent Contributor

Hello Alec,

If this survey is a secure resource, this is intentional; the header is set with the SAMEORIGIN directive to block any cross-origin framing of OAuth-secured resources. The survey and any resources in it must be shared publicly before they can be embedded.

Rachel

0 Kudos
AlecColarusso
Occasional Contributor

The survey is shared publicly but it still won't allow it to be embedded. It reports the same error "Refused to display in a frame because it set ‘X-Frame-Options’ to ‘sameorigin". 

Do you have any other suggestions?

Thank you,

Alec