45
Views
11
Comments
Solved
[PDF Viewer Reactive] This content is blocked. Contact the site owner to fix the issue.
pdf-viewer-reactive
Reactive icon
Forge asset by Jay Parnau
Application Type
Reactive
Service Studio Version
11.54.19 (Build 62633)

This content is blocked. Contact the site owner to fix the issue.

Have already configured CSP, even though this issue persists.


Please someone help on this..

2019-10-24 21-01-44
Jay Parnau
Staff
Solution

Good deal. Please mark as solved if you don't mind. Let me know if you have any more questions about it. 


Thanks!


Jay

UserImage.jpg
Shashank Bharadwaj

Hi Jay,

if any queries can we connect privately? if so can you give your Mailid..

2019-10-24 21-01-44
Jay Parnau
Staff
2019-10-24 21-01-44
Jay Parnau
Staff

What is the source of the PDF you are trying to display?

UserImage.jpg
Shashank Bharadwaj

Source is a Binary data which will be further converted to PDF and viewed infront end..

2019-10-24 21-01-44
Jay Parnau
Staff

Ok, but where is the source coming from? Database? File server? Content should not be blocked if it is coming from the same source as the app hosting it. 

UserImage.jpg
Shashank Bharadwaj

Ohh, so it is from the File server.

Actually the content does not get saved in DB, it generates whenever the client action is called.

2019-10-24 21-01-44
Jay Parnau
Staff

So your file server likely has one or more of these protections:

  • DENY: No rendering within an iframe,
  • SAMEORIGIN: Only rendering if the parent site is of the same origin as the site,
  • ALLOW-FROM uri: Allows rendering if framed by the specified uri.
UserImage.jpg
Shashank Bharadwaj

Hi Jay,

Don't know how but, now it is Visible. It was not working for me for around 4 days now suddenly it is visible.

Thanks mate for your time.

2019-10-24 21-01-44
Jay Parnau
Staff
Solution

Good deal. Please mark as solved if you don't mind. Let me know if you have any more questions about it. 


Thanks!


Jay

UserImage.jpg
Shashank Bharadwaj

Hi Jay,

if any queries can we connect privately? if so can you give your Mailid..

2019-10-24 21-01-44
Jay Parnau
Staff
UserImage.jpg
Jaslene Coleman

You need to change the CSP settings on your server or application to allow downloading and viewing of PDF files. Ensure that CSP headers are configured correctly to allow resources to be loaded from the required sources. Also, check to see if your browser extensions or add-ons are blocking PDF downloads.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.