add withCredentials option in m.request
This commit is contained in:
parent
d63cacbe3c
commit
d1c2a44de8
2 changed files with 18 additions and 16 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue