RequestInit.redirect - Web documentation
property RequestInit.redirect

A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect.

Type