ng2-pdf-viewer icon indicating copy to clipboard operation
ng2-pdf-viewer copied to clipboard

CSP unsafe-inline directive blocks pdf viewer

Open andreasgou opened this issue 2 months ago • 0 comments

Bug Report or Feature Request (mark with an x)
- [ ] Regression (a behavior that used to work and stopped working in a new release)
- [x] Bug report -> please search issues before submitting
- [ ] Feature request
- [ ] Documentation issue or request

It seems the script-src 'self' 'unsafe-inline' is mandatory for the pdf viewer to work.

Unfortunately (or not), the security policies enforced by the client does not permit the 'unsafe-inline' directive.

Is there any way to overcome this issue?

THanks!

andreasgou avatar Apr 18 '24 20:04 andreasgou