marchello
marchello

Reputation: 2136

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.

Upvotes: 3

Views: 1638

Answers (1)

adi518
adi518

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

Related Questions