Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to render PDF in Chrome when CSP sandbox flags are set #63

Open
wongngaisum opened this issue Jun 29, 2020 · 1 comment
Open

Comments

@wongngaisum
Copy link

Hi,

After I set CSP sandbox flags, it breaks PDF rendering, nothing is displayed. New windows opened from the sandbox inherit the sandbox flags in CSP. Sandbox is applied to Chrome's PDF render component, rather than the PDF itself. Is there anything I can do to avoid this problem?

CSP rule:
sandbox allow-modals allow-forms allow-scripts allow-same-origin allow-popups

Thanks!

@mrin9
Copy link
Owner

mrin9 commented Jun 30, 2020

Never tested around the CSP rules.
I will try providing an additional method to download the PDF rather than opening in a popup.
Cannot provide a timeline for now, but will start working on it in a month. Meanwhile I am open for a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants