1

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.

  • Yes, so it support if request comes from same origin.. in your case if you try to request wordays.com from xyz.com it will not work.. and result in Deny – Amal Hashim May 12 '15 at 15:04
1

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.

  • This means, I cannot have this window as an Iframe. Any possibilities that I can achieve this? Though I don't see any except communicating with Workday support team. – Pradip R. May 12 '15 at 14:45
  • 1
    I can't think of any other way other than programmatically requesting the site and then displaying it inside a div. I would recommend contacting support team and give it a go. – Amal Hashim May 12 '15 at 14:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.