marcbachmann / node-html-pdf

This repo isn't maintained anymore as phantomjs got dreprecated a long time ago. Please migrate to headless chrome/puppeteer.
MIT License
3.56k stars 545 forks source link

Including images in the output pdf without a security error showing up in browser console #558

Open N3rdizm opened 4 years ago

N3rdizm commented 4 years ago

Hello html-pdf team,

I use this module to output content in an application that comes with images at times. I use the file:// prefix to include the files in the rendering, however, doing so always seems to throw up the 'Unable to load local resource' error in the console (in chrome). My question is, is there any way to prevent said error from appearing, some clients that use our software takes note of errors and we don't want them reporting the error when it doesn't affect the output of the report.