From 1f9a64e908741a8efcab8a16e4d6ccc62fdf8fdc Mon Sep 17 00:00:00 2001 From: Dragomir Ivanov Date: Mon, 24 Jul 2017 17:37:54 +0300 Subject: [PATCH] xhr: xhr: include cookies in the XHR response header (#4543) --- tns-core-modules/xhr/xhr.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tns-core-modules/xhr/xhr.ts b/tns-core-modules/xhr/xhr.ts index 8f5255447..bbdf5402e 100644 --- a/tns-core-modules/xhr/xhr.ts +++ b/tns-core-modules/xhr/xhr.ts @@ -200,10 +200,7 @@ export class XMLHttpRequest { let result = ""; for (let i in this._headers) { - // Cookie headers are excluded - if (i !== "set-cookie" && i !== "set-cookie2") { - result += i + ": " + this._headers[i] + "\r\n"; - } + result += i + ": " + this._headers[i] + "\r\n"; } return result.substr(0, result.length - 2); }