SteGriff

Blog

Next & Previous

In IE, there is no request.responseURL

Had an issue today with users in Internet Explorer (all versions) due to a deficiency in the XHR object (Edge is fine).

We were handling a response and looking for response.request.responseURL which is present in all other browsers but not IE.

The solution, because we had hold of the response object, is to fallback to response.config.url:

const originalUrl = response.request.responseURL || response.config.url

Not so easy if you only have the request, unfortunately.

Stay safe - have hope 🌿