fetch() and Request now throws if redirect is detected when in non-follow redirect mode

Published: | Categories: DOM


In order to avoid the risk of open redirectors, the fetch method and the Request constructor now raises a network error when a request’s redirect option is set to manual or error and the response contains one or more redirects. Also, the redirected property has been added the Response interface so that developers can check this new property to avoid untrustworthy responses.