Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

View PDF with Firefox Modal Dialog Error: Permission Denied Cross-Origin Object

raudabatAug 28 2018 — edited Aug 28 2018

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

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 25 2018
Added on Aug 28 2018
4 comments
759 views