Returns true if both URLs are absolute and share the same origin (scheme,
host and port). Used to decide whether credentials may be attached to a
request. Any URL that cannot be parsed is treated as cross-origin.
Parameters
url: string
The URL to check
baseUrl: string
The URL to compare against (typically the FHIR server URL)
Returns
trueif both URLs are absolute and share the same origin (scheme, host and port). Used to decide whether credentials may be attached to a request. Any URL that cannot be parsed is treated as cross-origin.