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

1286
2
07-23-2020 03:04 PM
AlecColarusso
New Contributor II

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
Occasional Contributor II

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
New Contributor II

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

0 Kudos