ModuleFetchOptions Class

The options of the fetches of the module scripts (https://html.spec.whatwg.org/multipage/webappapis.html#script-fetch-options).

public sealed class ModuleFetchOptions

Constructors

NameDescription
ModuleFetchOptions()

ModuleFetchOptions()

ModuleScript.cs
public ModuleFetchOptions()

No documentation is available.

Properties

NameDescription
IncludeCredentialsGets whether the credentials are included in the cross-origin requests (the use-credentials state of the crossorigin attribute).
NonceGets the cryptographic nonce metadata of the requests (the nonce of the script element), or the empty string.
ParserInsertedGets whether the parser metadata of the requests is "parser-inserted" (the script element was inserted by the parser).
ReferrerPolicyGets the referrer policy of the requests (the referrerpolicy attribute), or the empty string.

IncludeCredentials

ModuleScript.cs

Gets whether the credentials are included in the cross-origin requests (the use-credentials state of the crossorigin attribute).

public bool IncludeCredentials { get; init; }

Property value

bool

Gets the cryptographic nonce metadata of the requests (the nonce of the script element), or the empty string.

public string Nonce { get; init; }

Property value

string

ParserInserted

ModuleScript.cs

Gets whether the parser metadata of the requests is "parser-inserted" (the script element was inserted by the parser).

public bool ParserInserted { get; init; }

Property value

bool

ReferrerPolicy

ModuleScript.cs

Gets the referrer policy of the requests (the referrerpolicy attribute), or the empty string.

public string ReferrerPolicy { get; init; }

Property value

string