Well am trying to open a word document from office 365 inside my aspx page. The url is included in an iframe,however the page keeps throwing an error message "This content cannot be displayed in a frame". example code:
<iframe width="700" height="700" src='mysite.sharepoint.com/.../WopiFrame.aspx
I have tried the following but with no luck:
<WebPartPages:AllowFraming runat="server" />to SharePoint master page
- Allow external iframes in HTML Field Security in office 365 site settings.
- Add the office 365 SharePoint to trusted sites in internet explorer and enabling display mixed content
- Add IHttpModule to my asp.net web application to adding headers for the X-Frame-Options
Ventigrate.Shared.PermissiveXFrameHeaderfeature on the office 365 SharePoint site
The thing is I have added
Ignore X-frame headers extension
to my google chrome and I was able to open the word document in google chrome only.
Also if I have change the action inside the url from default to interactivepreview the page will open in IE.
Nevertheless there is no extension for IE,but if there is a solution in google chrome that means there is a possibility to make it work for IE.
Any help would be highly appreciated