How to make a request not following redirects?

I found of two built-in options for making requests:

fetch({
  redirect: "manual"
})

which won’t work due to the cors limitations.

requestUrl()

which doesn’t have redirects control options and doesn’t provide url in the response object.


What is a propper way/library to make requests with low level control that works on both desktop and mobile?