Reputation: 2136
Is there a way to somehow get the values of httpOnly cookies in electron?
The site I'm pre-loading before my main app loads, sends an httpOnly cookie that has a key inside. I need this key for my http request headers.
I tried with webContents.session.cookies
without luck.
Upvotes: 3
Views: 1638
Reputation: 862
I was able to to get an httpOnly
cookie using Nightmare.js, which uses Electron. Therefore, I think you should be able to achieve that by looking at the source.
Upvotes: 2