MCPcopy
hub / github.com/angular-ui/ui-grid / urlIsSameOrigin

Function urlIsSameOrigin

lib/test/angular/1.8.0/angular.js:21823–21825  ·  view source on GitHub ↗

* Parse a request URL and determine whether this is a same-origin request as the application * document. * * @param {string|object} requestUrl The url of the request as a string that will be resolved * or a parsed URL object. * @returns {boolean} Whether the request is for the same origin as th

(requestUrl)

Source from the content-addressed store, hash-verified

21821 * @returns {boolean} Whether the request is for the same origin as the application document.
21822 */
21823function urlIsSameOrigin(requestUrl) {
21824 return urlsAreSameOrigin(requestUrl, originUrl);
21825}
21826
21827/**
21828 * Parse a request URL and determine whether it is same-origin as the current document base URL.

Callers 1

matchUrlFunction · 0.70

Calls 1

urlsAreSameOriginFunction · 0.70

Tested by

no test coverage detected