Closed bjoerge closed 2 years ago
Setting xhr.withCredentials = true before the xhr.open() call throws an InvalidStateError in IE10 (and possibly other browsers too). This behaviour is actually according to spec: http://www.w3.org/TR/XMLHttpRequest2/#the-withcredentials-attribute.
xhr.withCredentials = true
xhr.open()
I can't see any reason for the try catch around it either (other than making it harder to spot errors), so I removed it too. I'm happy to bring it back if there are good reasons for it.
+1
Can we get this merged? Won't work on IE10 otherwise.
Setting
xhr.withCredentials = true
before thexhr.open()
call throws an InvalidStateError in IE10 (and possibly other browsers too). This behaviour is actually according to spec: http://www.w3.org/TR/XMLHttpRequest2/#the-withcredentials-attribute.I can't see any reason for the try catch around it either (other than making it harder to spot errors), so I removed it too. I'm happy to bring it back if there are good reasons for it.