IsSameOrigin(Uri, Uri)
static
public static bool IsSameOrigin(Uri requestUri, Uri location)Returns whether
location has the scheme, host, and port of requestUri.Parameters
requestUriUri- The URL of the request which started the operation.
locationUri- The operation's location.
Returns
true when both URLs have one origin.