change xhr.withCredentials to be false by default

This commit is contained in:
Leo Horie 2014-03-20 11:07:10 -04:00
parent ba0d381cc7
commit 4cc123e01d
2 changed files with 6 additions and 1 deletions

View file

@ -345,7 +345,6 @@ new function(window) {
xhr.open(options.method, options.url, true, options.user, options.password)
xhr.onload = typeof options.onload == "function" ? options.onload : function() {}
xhr.onerror = typeof options.onerror == "function" ? options.onerror : function() {}
xhr.withCredentials = true
if (typeof options.config == "function") options.config(xhr, options)
xhr.send(options.data)
return xhr