Lingua

CoreWebView2ServiceWorkerRegistration.TopLevelOrigin Property

Definition

A string representing the URI of the top-level document that the worker is associated with.

If a worker is created with ScriptUri set to https://example.com/worker.js, the top-level origin is https://example.com/. If the same worker is created from an iframe at https://example.com/ which is hosted on https://example2.com/, the top-level origin is https://example2.com/.

Refer to the Host Name Canonicalization section for details on how normalization is performed.

When CustomDataPartitionId is set, the TopLevelOrigin will be a generated site like <guid>.invalid. For example, if the top-level document is https://example.com/worker.js, the top-level origin will be https://<guid>.invalid/.

For more details, see CustomDataPartitionId.

public string TopLevelOrigin { get; }
member this.TopLevelOrigin : string
Public ReadOnly Property TopLevelOrigin As String

Property Value

Applies to