We are attempting to display a document library view in an iFrame on a page withing Dynamics CRM and then open the documents from that list within the iFrame as well. The issue we are having is that Office documents (Word, Excel, etc.) work fine and open up in the iFrame just as we expect. However; PDF's that are stored in the Library throw the error that for security reasons they cannot be opened in a frame, iFrame etc. I suspect that this is due to the PDF web viewer, in use, adding the x-frame header element that tells the browser that this is not allowed.
Is there a better way to force the PDF web viewer to allow being opened in an iFrame or at least a more configuration driven way to get the documents to open in a new window?
This is a SharePoint Online environment that we don't control so any solutions that require server access are a non starter.