tsayen / dom-to-image

Generates an image from a DOM node using HTML5 canvas
Other
10.21k stars 1.68k forks source link

Breaks Content security Policy (CSP) #355

Open cvPriyanka opened 3 years ago

cvPriyanka commented 3 years ago

I have CSP headers where data: is restricted since it is unsafe. domImage.toPng() functions call a dataURL conversion hence breaks the CSP. Is there any possible way to avoid this

fran7de commented 8 months ago

Did you find a fix for this?

wastu01 commented 6 months ago

how to avoid that problem ?