2
datafeeds/udf/dist/bundle.js
vendored
2
datafeeds/udf/dist/bundle.js
vendored
File diff suppressed because one or more lines are too long
@@ -16,7 +16,8 @@ var Requester = /** @class */ (function () {
|
||||
}).join('&');
|
||||
}
|
||||
logMessage('New request: ' + urlPath);
|
||||
var options = {};
|
||||
// Send user cookies if the URL is on the same origin as the calling script.
|
||||
var options = { credentials: 'same-origin' };
|
||||
if (this._headers !== undefined) {
|
||||
options.headers = this._headers;
|
||||
}
|
||||
|
||||
@@ -25,7 +25,9 @@ export class Requester {
|
||||
|
||||
logMessage('New request: ' + urlPath);
|
||||
|
||||
const options: RequestInit = {};
|
||||
// Send user cookies if the URL is on the same origin as the calling script.
|
||||
const options: RequestInit = { credentials: 'same-origin' };
|
||||
|
||||
if (this._headers !== undefined) {
|
||||
options.headers = this._headers;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user