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.55k stars 544 forks source link

Cross-origin errors on typescript based create react projects #684

Closed MakoMitsuki closed 2 years ago

MakoMitsuki commented 2 years ago

Hi there, I am trying to implement the example code on a typescript-based create-react-app project. The code sandbox is here As you can see, it is getting a cross-origin error on implementation. Is there something that could be done to remedy this?

I believe I have the requisite dependencies installed (phantomjs, phantomjs-prebuilt, tap-spec, standard, tape).