Commit 713606df authored by guozhipeng's avatar guozhipeng

请求头

parent e68668a2
...@@ -690,8 +690,7 @@ sap.ui.define( ...@@ -690,8 +690,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -1104,8 +1103,7 @@ sap.ui.define( ...@@ -1104,8 +1103,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -1995,8 +1993,7 @@ sap.ui.define( ...@@ -1995,8 +1993,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -3163,8 +3160,7 @@ sap.ui.define( ...@@ -3163,8 +3160,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
......
...@@ -248,8 +248,7 @@ sap.ui.define( ...@@ -248,8 +248,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -408,8 +407,7 @@ sap.ui.define( ...@@ -408,8 +407,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -552,8 +550,7 @@ sap.ui.define( ...@@ -552,8 +550,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -987,8 +984,7 @@ sap.ui.define( ...@@ -987,8 +984,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -1036,8 +1032,7 @@ sap.ui.define( ...@@ -1036,8 +1032,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -1416,8 +1411,7 @@ sap.ui.define( ...@@ -1416,8 +1411,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -1530,8 +1524,7 @@ sap.ui.define( ...@@ -1530,8 +1524,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -2431,8 +2424,7 @@ sap.ui.define( ...@@ -2431,8 +2424,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -2463,8 +2455,7 @@ sap.ui.define( ...@@ -2463,8 +2455,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -2502,8 +2493,7 @@ sap.ui.define( ...@@ -2502,8 +2493,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -2545,8 +2535,7 @@ sap.ui.define( ...@@ -2545,8 +2535,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -2586,8 +2575,7 @@ sap.ui.define( ...@@ -2586,8 +2575,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -2625,8 +2613,7 @@ sap.ui.define( ...@@ -2625,8 +2613,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -2673,8 +2660,7 @@ sap.ui.define( ...@@ -2673,8 +2660,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -2710,8 +2696,7 @@ sap.ui.define( ...@@ -2710,8 +2696,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -2743,8 +2728,7 @@ sap.ui.define( ...@@ -2743,8 +2728,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
......
...@@ -183,8 +183,7 @@ sap.ui.define([ ...@@ -183,8 +183,7 @@ sap.ui.define([
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
......
...@@ -309,8 +309,7 @@ sap.ui.define([ ...@@ -309,8 +309,7 @@ sap.ui.define([
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -361,8 +360,7 @@ sap.ui.define([ ...@@ -361,8 +360,7 @@ sap.ui.define([
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -1073,8 +1071,7 @@ sap.ui.define([ ...@@ -1073,8 +1071,7 @@ sap.ui.define([
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
......
...@@ -495,8 +495,7 @@ sap.ui.define( ...@@ -495,8 +495,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -555,8 +554,7 @@ sap.ui.define( ...@@ -555,8 +554,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
......
...@@ -641,8 +641,7 @@ sap.ui.define( ...@@ -641,8 +641,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -701,8 +700,7 @@ sap.ui.define( ...@@ -701,8 +700,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
......
...@@ -303,8 +303,7 @@ sap.ui.define( ...@@ -303,8 +303,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -363,8 +362,7 @@ sap.ui.define( ...@@ -363,8 +362,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
......
...@@ -499,8 +499,7 @@ sap.ui.define( ...@@ -499,8 +499,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
......
...@@ -360,8 +360,7 @@ sap.ui.define( ...@@ -360,8 +360,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -419,8 +418,7 @@ sap.ui.define( ...@@ -419,8 +418,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
......
...@@ -178,8 +178,7 @@ sap.ui.define( ...@@ -178,8 +178,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -256,8 +255,7 @@ sap.ui.define( ...@@ -256,8 +255,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -356,8 +354,7 @@ sap.ui.define( ...@@ -356,8 +354,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
......
...@@ -188,8 +188,7 @@ sap.ui.define( ...@@ -188,8 +188,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -245,8 +244,7 @@ sap.ui.define( ...@@ -245,8 +244,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
......
...@@ -306,8 +306,7 @@ sap.ui.define( ...@@ -306,8 +306,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -380,8 +379,7 @@ sap.ui.define( ...@@ -380,8 +379,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -439,8 +437,7 @@ sap.ui.define( ...@@ -439,8 +437,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
......
...@@ -579,8 +579,7 @@ sap.ui.define( ...@@ -579,8 +579,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -639,8 +638,7 @@ sap.ui.define( ...@@ -639,8 +638,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
......
...@@ -130,8 +130,7 @@ sap.ui.define( ...@@ -130,8 +130,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -304,8 +303,7 @@ sap.ui.define( ...@@ -304,8 +303,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -428,8 +426,7 @@ sap.ui.define( ...@@ -428,8 +426,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -503,8 +500,7 @@ sap.ui.define( ...@@ -503,8 +500,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -562,8 +558,7 @@ sap.ui.define( ...@@ -562,8 +558,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
......
...@@ -177,8 +177,7 @@ sap.ui.define( ...@@ -177,8 +177,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
......
...@@ -191,8 +191,7 @@ sap.ui.define( ...@@ -191,8 +191,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -239,8 +238,7 @@ sap.ui.define( ...@@ -239,8 +238,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
......
...@@ -384,8 +384,7 @@ sap.ui.define( ...@@ -384,8 +384,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
......
...@@ -627,8 +627,7 @@ sap.ui.define( ...@@ -627,8 +627,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
......
...@@ -929,8 +929,7 @@ sap.ui.define( ...@@ -929,8 +929,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
......
...@@ -298,8 +298,7 @@ sap.ui.define( ...@@ -298,8 +298,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
......
...@@ -268,8 +268,7 @@ sap.ui.define( ...@@ -268,8 +268,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -519,8 +518,7 @@ sap.ui.define( ...@@ -519,8 +518,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
......
...@@ -327,8 +327,7 @@ sap.ui.define( ...@@ -327,8 +327,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
...@@ -386,8 +385,7 @@ sap.ui.define( ...@@ -386,8 +385,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
......
...@@ -213,8 +213,7 @@ sap.ui.define( ...@@ -213,8 +213,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
......
...@@ -443,8 +443,7 @@ sap.ui.define( ...@@ -443,8 +443,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
......
...@@ -270,8 +270,7 @@ sap.ui.define( ...@@ -270,8 +270,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
......
...@@ -326,8 +326,7 @@ sap.ui.define( ...@@ -326,8 +326,7 @@ sap.ui.define(
var headers = {};//headers: headers, var headers = {};//headers: headers,
if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) { if (that.getStorage().get("csrfToken") != null && that.getStorage().get("csrfToken") !== undefined) {
headers = { headers = {
'x-csrf-token': that.getStorage().get("csrfToken"), 'x-csrf-token': that.getStorage().get("csrfToken")
'Content-Type': 'application/json'
}; };
} }
headers.language=that.language; headers.language=that.language;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment