7

I am writing a browser extension using modern Browsers generic WebExtensions framework.

I try to figure out, how I can get (read) access or a copy of the data of an http response send by a regular server utilizing the stable WebRequest API. Firefox's and Chrome's documentations do not offer a convenient way of achieving this. Is it even possible within the WebExtensions framework?

Thanks in advance.

wOxxOm
  • 65,848
  • 11
  • 132
  • 136
David
  • 71
  • 2

1 Answers1

4

No, it's not possible with WebRequest API.

It's been asked for a long time, though, at least for Chrome.

Xan
  • 74,770
  • 16
  • 179
  • 206
  • The Firefox bug for this is [Bug 1255894 - Support a webRequest.onResponseData event to filter HTTP response bytes as they come](https://bugzilla.mozilla.org/show_bug.cgi?id=1255894) – WirthLuce Feb 18 '17 at 19:01
  • @WirthLuce that's just filtering, I was hoping there might be some way to retrieve the entire response body/headers/etc. Is there still no way? – daraul May 11 '20 at 01:17