9
Views
3
Comments
Solved
Opening a pdf embedded in iFrame with Content Security Policy

Hello,

I am trying to open a PDF embedded in an IFrame. But I am getting the following error on Console:



My environment is CSP enabled.

Source Code:

"<iframe src='data:application/pdf;base64, " +
File.Base64  + "' width='" + Width + "' height='" + Height + "'></iframe>"

Please help.



Rank: #6534
Solution

We need to add this:




Rank: #448

Hi Smita,

You need to enable Content security Policy in the LifeTime.

I hope that will resolved your issue...

Cheers....

Rank: #6534

Enabled the CSP. But still getting the issue. Need to understand what value to be put in.

Rank: #6534
Solution

We need to add this: