CoreWebView2LaunchingExternalUriSchemeEventArgs.InitiatingOrigin Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 to
calculator://. If the request is initiated from a child frame, the
InitiatingOriginwill be the source of that child frame. If the
InitiatingOriginis [opaque](https://html.spec.whatwg.org/multipage/origin.html#concept-origin-opaque), the
InitiatingOrigin` 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.