S
S
Stepgor2021-01-05 07:35:37
Browser extensions
Stepgor, 2021-01-05 07:35:37

Is it possible to send an authorization request from an extension without a cookie?

Let's say site.com has cookies with an authorization token, so the page will be sent to me as an authorized user. Is it possible to somehow send a request to site.com from the extension, but what would send me an unauthorized page, that is, without a cookie with a token. I tried to change cookies in headers, but it didn't help, maybe there is another way?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GrayHorse, 2021-01-05
@Stepgor

fetch(url, {
  credentials: "omit"
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question