Partilhar via


CoreWebView2LaunchingExternalUriSchemeEventArgs.InitiatingOrigin Property

Definition

Gets the origin initiating the external URI scheme launch.

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

Property Value

Remarks

The origin will be an empty string if the request is initiated by calling Navigate(String) on the external URI scheme. If a script initiates the navigation, the InitiatingOrigin will be the top-level document's Source, i.e. if window.location is set to "calculator://", the InitiatingOriginwill be set tocalculator://. If the request is initiated from a child frame, the InitiatingOriginwill be the source of that child frame. If theInitiatingOriginis [opaque](https://html.spec.whatwg.org/multipage/origin.html#concept-origin-opaque), theInitiatingOrigin` reported in the event args will be its precursor origin. The precursor origin is the origin that created the opaque origin. For example, if a frame on example.com opens a subframe with a different opaque origin, the subframe's precursor origin is example.com.

Applies to