function sap/ui/util/isCrossOriginURL

Visiblity: restricted
Available since: N/A
Module: sap/ui/util/isCrossOriginURL
Application Component:

Checks whether the given URL is cross-origin, compared to the origin of the current page (window.location).

Note: for opaque origins ('null'), the check is quite conservative and always reports a cross-origin URL, although the real origins might be the same. The serialized representation of origins does not allow a more accurate check.



References:


Parameters Overview

Param Type Default Value Description
sHref sap.ui.core.URI The URL to check

Methods Overview

Method Description