diff --git a/docs/change-log.md b/docs/change-log.md index 58b16225..362395d7 100644 --- a/docs/change-log.md +++ b/docs/change-log.md @@ -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 \ No newline at end of file diff --git a/mithril.js b/mithril.js index 9fcc5e19..9eb476c5 100644 --- a/mithril.js +++ b/mithril.js @@ -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