Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Electron get httponly cookies

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.

like image 829
marchello Avatar asked Aug 15 '26 17:08

marchello


1 Answers

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.

like image 167
adi518 Avatar answered Aug 18 '26 20:08

adi518



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!