change xhr.withCredentials to be false by default
This commit is contained in:
parent
ba0d381cc7
commit
4cc123e01d
2 changed files with 6 additions and 1 deletions
|
|
@ -1,3 +1,9 @@
|
|||
## Change Log
|
||||
|
||||
[v0.1.1](/archive/v0.1.1) - maintenance
|
||||
|
||||
### Breaking changes:
|
||||
|
||||
- changed default value for `xhr.withCredentials` from `true` to `false` for `m.request`, since public APIs are more common than auth-walled ones
|
||||
|
||||
[v0.1](/archive/v0.1) - Initial release
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue