Sdk request: how to get all headers?

https://addons.mozilla.org/en-US/developers/docs/sdk/latest/modules/sdk/request.html

How to get all the headers?

I cannot see the "Location" or "Set-Cookie" from the request. But I see it with firebug.

+4
source share
1 answer

The request module is a small wrapper around the implementation of XHR. Using the net / xhr module provides a standard XMLHttpRequest object that allows you to call methods like setRequestHeader , getAllResponseHeaders and getResponseHeader

+4
source

Source: https://habr.com/ru/post/1499868/


All Articles