phantom-html-to-pdf icon indicating copy to clipboard operation
phantom-html-to-pdf copied to clipboard

using cookie option provided is not working in the html request, while conversion

Open Ramprasad2k2 opened this issue 7 years ago • 1 comments

Hi, I am using the option "Cookies" provided in the phantom-html-to-pdf, but while sending the request to html, I did not find any cookies attached with that request. I checked this with fiddler/postman, but unable to find cookies in that request. I am unable to find the reason why it is not attaching cookies even though its provided in the option. Please help.

    cookies: [{
        name: "cookie_name",
        value: "value"
    }],

I am passing cookies as array of objects, even though its not working. Can you please ensure your side, whether this option takes the cookies with the request?

Ramprasad2k2 avatar Dec 15 '17 15:12 Ramprasad2k2

With PhantomJS 2 it is working. Upgrade by following this: https://www.npmjs.com/package/phantom-html-to-pdf#phantomjs2

ghost avatar Jun 09 '18 14:06 ghost