Today I looked at so many different SO posts.
I have an application that should show PDF documents inside a browser. This application also needs to be run in IE (11+).
Here's the thing: an iframe with src works just fine. Something like:
<iframe src="www.myurl.com/thedocument"></iframe>
However, www.myurl.com/thedocument now protected by oAuth. This means that I need to request www.myurl.com/thedocument with the appropriate credentials for the authorization header.
This means (I think) that I should request www.myurl.com/thedocument via ajax. The ajax request returns base64 or byte [] containing the document.
IE does not support data URIs for rendering PDF files, so I cannot just track the response from my ajax request in an iframe.
So now I'm stuck.
Any ideas?
thanks
javascript internet-explorer pdf iframe
Jeff
source share