Is there any way to extract the request url from an xhr object? I can see the url in firebug via the channel property but you cant query this using javascript.
A couple of related properties that could be useful are:
xhr2
XMLHttpRequest.responseURL
- https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseURL.
This is not supported by IE.
fetch
If you are using fetch you can use Response.url
- https://developer.mozilla.org/en-US/docs/Web/API/Response/url.
This is not supported by IE.