* 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)
| 21035 | * @returns {boolean} Whether the request is for the same origin as the application document. |
| 21036 | */ |
| 21037 | function urlIsSameOrigin(requestUrl) { |
| 21038 | return urlsAreSameOrigin(requestUrl, originUrl); |
| 21039 | } |
| 21040 | |
| 21041 | /** |
| 21042 | * Parse a request URL and determine whether it is same-origin as the current document base URL. |
no test coverage detected