InvalidStateError in IE with Ajax request.
mseddon opened this issue · 1 comments
When I attempt to open an XMLHttpRequest using the Ajax utility function, IE11 (correctly) throws an InvalidStateException.
The problem is that withCredentials is being set on the XMLHttpRequest object before it is opened at https://github.com/scala-js/scala-js-dom/blob/master/src/main/scala/org/scalajs/dom/extensions/Extensions.scala#L184.
The issue is explained here:
https://code.google.com/p/v8/issues/detail?id=789
The fix is trivial (just move withCredentials assignment below the open). I can send a PR for it over the weekend if you like.
Sounds good to me
On Fri, May 2, 2014 at 4:15 PM, mseddon notifications@github.com wrote:
When I attempt to open an XMLHttpRequest using the Ajax utility function,
IE11 (correctly) throws an InvalidStateException.The problem is that withCredentials is being set on the XMLHttpRequest
object before it is opened as explained here:https://code.google.com/p/v8/issues/detail?id=789
The fix is trivial (just move withCredentials assignment below the open).
I can send a PR for it over the weekend if you like.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/22
.