RequestInit.mode - Web documentation
property RequestInit.mode

A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode.

Type