Thank you Martin. Since yesterday I started digging deeper in parallel and I have found the cookies API. If I understand its capabilities correctly, it should allow me to query for cookies for a particular domain via getAll().
The question is, whether the storeId
is compatible with the cookieStoreId
from contextualIdentitities API. If so, it should be possible to add them manually to the add-on request via webRequest.onBeforeSendHeaders. First I thought it would be possible to add them manually to via fetch()
or XMLHttpRequest
, but I realized cookies cannot be set like other headers…