-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
withCredentials on ajax causes INVALID_STATE_ERR: DOM Exception 11 #921
Comments
Thanks. Closing as duplicate of the above PR |
The above change will fix the issue on android but break the unit tests:
I will investigate more on this issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i use
basket.js
: * http://addyosmani.github.io/basket.js/ for my pageand use
zepto
for ajax width CORSit is OK in PC chrome .
but in android webview
the page throw an error
INVALID_STATE_ERR: DOM Exception 11
finally i found this
Therefore, use the open method on the XMLHttpRequest object before setting the withCredentials attribute.
this will throw
INVALID_STATE_ERR: DOM Exception 11
:OK :
so i change zepto source code
original :
after:
just move up
xhr.open
, then everthing is OKso i think zepto should move up
xhr.open
The text was updated successfully, but these errors were encountered: