html2pdf.js icon indicating copy to clipboard operation
html2pdf.js copied to clipboard

Content security policy

Open marius-m2 opened this issue 7 years ago • 1 comments

Right now using my security policy of using script-src 'self I'm getting a refusal to run html2pdf. By adding script src 'self' 'unsafe-eval' then it works just fine. That isn't an option for me though..

I've had a look through html2canvas and jspdf and can't find a reference to eval, so I'm thinking it might be something deeper down the chain.

Can you advise on this?

marius-m2 avatar Apr 12 '19 09:04 marius-m2

Right now using my security policy of using script-src 'self I'm getting a refusal to run html2pdf. By adding script src 'self' 'unsafe-eval' then it works just fine. That isn't an option for me though..

I've had a look through html2canvas and jspdf and can't find a reference to eval, so I'm thinking it might be something deeper down the chain.

Can you advise on this?

Hi did you find anything to solve this or is there any other alternative for the library?

khaukheng avatar Aug 28 '24 03:08 khaukheng