Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I want to show some content from Sharepoint in IFRAME. From some research, I come to know that specific setting for X-FRAME-OPTIONS in HTTP Header prevents rendering in iframes. How can I use ALLOW-FROM option of X-FRAME-OPTIONS to allow this? Given, I am admin for the Sharepoint Server 2013.

share|improve this question

1 Answer

According to this post you need to add a SharePoint 2013 specific tag to your ASPX page to disable the SharePoint 2013 default behavior of X-FRAME-OPTIONS.

The particular tag is:

<WebPartPages:AllowFraming runat="server" />

and as far as I can see it is required on each and every ASPX page you want to allow. I personally haven't figured out yet how to disable it globally (sigh).

share|improve this answer
I think you should write an handler to disable it globally – Salvatore Di Fazio Feb 13 at 10:44
BTW I have wrote the AllowFraming control in both the pages but I still have the x-frame-options error – Salvatore Di Fazio Feb 13 at 10:49
sorry I mean a IHttpModule not handler – Salvatore Di Fazio Feb 13 at 11:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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