Omitting credentials on react native fetch

Viewed 1152

Im trying to stop the react-native implementation of fetch to send the cookie to the server as i'd like to supply my own custom logic for it. I would expect that

 const response = await fetch(apiURL, {
      method: 'GET',
      headers,
      credentials: "omit",
    });

would do the trick but it clearly doesnt work as when i inspect the outbound traffic with Wireshark the Cookie gets sent anyway..

Any clues? I'd rather not have to dive into the fetch implementation code but im starting to entertaing the idea..

0 Answers
Related