|
@@ -10,10 +10,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
import Axios from 'axios';
|
|
|
import qs from 'querystring';
|
|
|
const factory = (opts) => {
|
|
|
- const { baseURL, notifier, bridge } = opts || {};
|
|
|
+ const { baseURL, notifier, bridge, withCredentials = true } = opts || {};
|
|
|
const axios = Axios.create({
|
|
|
baseURL,
|
|
|
- withCredentials: true
|
|
|
+ withCredentials
|
|
|
});
|
|
|
return (opts) => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
const { url, method, query, data, dataType = 'form', headers = {} } = opts;
|