Hi All,
I am receiving the following error when I try to render a PDF using Apex 5.1.4 "modal dialog". The PDF is rendered in the dialog but is throwing an error TypeError: this.contentDocument is null. Next, when I try to click the "X" to close the dialog is receive javascript error SecurityError: Permission denied to access property "apex" on cross-origin object. I cannot close the modal dialog. I should mention firefox uses pdf.js to render the PDF. This is what is throwing the error.
I am generating the PL/SQL code to download the document to the browser window. I am just setting the mime type to "application/pdf", closing mime header and then calling wpg_docload.download_file containing blob. This works fine in IE 11, Edge. Our workstations are Windows 10 using ver 60.1.esr. I cannot figure out how to resolved this problem. I have been reading about cross origin resource sharing but not sure what I need to set. I will not be able to reproduce on Oracle site. Any insight or suggestions appreciated.
thanks in advance,
Tom