RequestMode Enum

The mode of a DocumentRequest (https://fetch.spec.whatwg.org/#concept-request-mode).

public enum RequestMode

Fields

NameValueDescription
NoCors0A request whose response can come from any origin without CORS (e.g. a classic script, an image).
Cors1A CORS request (e.g. a module script, a script with a crossorigin attribute): a response from another origin must allow the origin of the request with its Access-Control-Allow-Origin header (https://fetch.spec.whatwg.org/#cors-check), else it is a network error. The library performs the check.
SameOrigin3A request whose response must come from the same origin (e.g. fetch(url, { mode: "same-origin" })).
WebSocket4The opening handshake of a RequestMode.WebSocket (see DocumentLoader.ConnectWebSocketAsync).