Skip to content

Conversation

@raindrift
Copy link

Some clients check to see if responseType is present on the xhr before setting it, but then also depend on it being there.

This PR sets a default value on the facade to match what is expected on the xhr. I have verified that at least for the xhr library I'm attempting to shim, it fixes the issue I had encountered.

@condorheroblog
Copy link

const xhr = new XMLHttpRequest();
xhr.open('GET', 'https://http.codes/200', false); // Note: async is false
xhr.send();

Please check this issue @raindrift :

Uncaught InvalidAccessError: Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be changed for synchronous requests made from a document.Understand this errorAI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants