commit 2018-02-15 14:38:12.379828

Session and Cookie #2484
This commit is contained in:
Jenkins
2018-02-15 08:39:09 -06:00
parent d15c5cfb60
commit c982afe3f1
15 changed files with 9 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@@ -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;
}

View File

@@ -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;
}