dblazeski / express-chrome-ssr

Server side rendering with puppeteer and reused headless chrome instance
MIT License
28 stars 10 forks source link

Accept / Enable cookies for SSR #19

Open gandolfi974 opened 2 years ago

gandolfi974 commented 2 years ago

hello, i want to render website but it's impossible because they require cookies to be enabled. Do you know how to activate them?

thanks

dblazeski commented 2 years ago

Perhaps give this a try - https://gist.github.com/ilyazub/764ea38378416d406cf2fbfe8f4ce9fb

gandolfi974 commented 2 years ago

hello, I have try with the code you give but there is a problem with "got"

thanks for your help