In my angular application, I am trying to display a pdf in the HTML. I am using as below,
<embed [src]="pdfContent" width="100%" height="1930px" type="application/pdf" />
It works fine when I run the app on localhost:4200
, but when I deploy the changes to my application server(weblogic), it gives me an error 'Content Security Policy' shown below:
Refused to load plugin data from 'blob because it violates the following Content Security Policy directive: "default-src 'self' 'unsafe-eval'
I tried to fix using this link : but doesn't work. Any idea what's the issue?