Question

I have a SharePoint Publishing Page in which particularly using an iframe to load a HR Portal by Workday.

So for that, in my Publishing Page I have simply added Page Viewer Web Part and then added iframe URL in Web Part property, but it is giving me error as below:

This content cannot be displayed in a frame

To help protect the security of information you enter into this website, the publisher of this content does not allow it to be displayed in a frame.

When I open the iframe in new window, it is authenticating the user first and then redirecting to the homepage of the portal. But in iframe it is not working properly, instead it is redirecting the page to the Workday portal home page after authentication.

I have found some workaround to change something in X-FRAME-OPTIONS option from this article, also found this, but both of this link explains that Iframe URL is from SharePoint itself but different server. In here I have third party portal which I want to show in SharePoint 2013 publishing page. Any idea how to achieve this?

Update 1

After taking look at the Network panel in Developer tools found that X-FRAME-OPTIONS was set to SAMEORIGIN

enter image description here

and getting Response body as below:

enter image description here

This shows there has to be something on the Workday side.

Any help would be much appreciated.

Était-ce utile?

La solution

This has nothing to do with SharePoint.

I believe the site wordays returns header X-Frame-Options:DENY. Once browser see this, it rejects to display it inside IFrame.

Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top