add withCredentials option in m.request

This commit is contained in:
Leo Horie 2016-11-23 01:35:56 -05:00
parent d63cacbe3c
commit d1c2a44de8
2 changed files with 18 additions and 16 deletions

View file

@ -54,6 +54,7 @@ module.exports = function($window, Promise) {
if (args.deserialize === deserialize) {
xhr.setRequestHeader("Accept", "application/json, text/*")
}
if (args.withCredentials) xhr.withCredentials = args.withCredentials
if (typeof args.config === "function") xhr = args.config(xhr, args) || xhr