You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on an application that incorporates jsPDF in it, and also has some Content Security Policies embedded within it. Every time I keep running into an issue with document-cloner.ts with documentClone.write, and I'm literally at my wit's end how to diagnose it. I tried forking the repository and replacing the document.write with documentClone.body.appendChild but to no avail...
Hi everyone,
I'm working on an application that incorporates jsPDF in it, and also has some Content Security Policies embedded within it. Every time I keep running into an issue with document-cloner.ts with documentClone.write, and I'm literally at my wit's end how to diagnose it. I tried forking the repository and replacing the document.write with documentClone.body.appendChild but to no avail...
My Content Security Policy in Express/Node is as follows:
res.header('Content-Security-Policy', "require-trusted-types-for 'script'; img-src * 'self'; style-src-elem 'self' 'unsafe-inline'; default-src 'self'; script-src 'self' https://cdnjs.cloudflare.com 'unsafe-inline'; style-src 'self' 'unsafe-inline' ; object-src 'none'; base-uri 'self'; font-src 'self'; frame-src 'self'; manifest-src 'self'; media-src 'self'; worker-src 'self' blob: https://cdnjs.cloudflare.com/; connect-src 'self' https://firebasestorage.googleapis.com https://securetoken.googleapis.com https://www.googleapis.com;"),
Any suggestions on how to move forward? Either I have to move the stuff to the server-side, or find another service. Thanks
The text was updated successfully, but these errors were encountered: