hypnomaki
hypnomaki

Reputation: 662

Electron - How to sniff http request body

I have a simple electron app which loads a certain website. This website is doing http get/post requests. I want to sniff the body of the server responses.

I already checked out the webRequest module which seemed pretty nice. Unfortunetely, it handles all data EXCEPT the body.

How can I sniff the body of the server responses?

Upvotes: 0

Views: 1181

Answers (1)

hypnomaki
hypnomaki

Reputation: 662

Found out that this is not possible. Also its not a an Electron issue, rather a chromium one - Electron just wraps the chromium API.

Finally I managed to inject a javascript (inside the api service) which forwards me all data received from the server via ipc https://electronjs.org/docs/api/ipc-main

Upvotes: 2

Related Questions