Issue when preview PDF in Constellation

Hello Pega Community,

The context is when I upload a pdf file in a case it is uploaded correctly. But when I click on the uploaded file I cannot preview it in the dialog and still empty and black as shown in the screenshoot. The pdf is in Data-WorkAttach-File.

Could anyone have an explication of this issue?

Thanks in advance.

@AmiraF34 This happens when the PDF preview is being blocked by security headers, so the file loads fine but the embedded viewer cannot render it and you see a black/empty dialog. Fix it by making sure the attachment response is allowed to display in an iframe and is served as a real PDF: set the headers to allow same-origin framing (CSP frame-ancestors ‘self’ and X-Frame-Options: SAMEORIGIN) and ensure the response Content-Type is application/pdf with Content-Disposition: inline. Apply the change on the app server or reverse proxy that sits in front of Pega, then restart and retry the preview.