diff options
author | 2019-07-18 04:28:00 +0000 | |
---|---|---|
committer | 2019-07-18 04:28:00 +0000 | |
commit | a60064d01f6d37c0a75f1020010e5511d939785e (patch) | |
tree | ab54c4e6ed8a637603f216d11caba5c0fc4dc158 /ui-react/src/api | |
parent | 0ce11eaeca48930d0203545a5e4206349a11f01b (diff) | |
parent | 2dacb9bd185db2c05de435d2bd446865e158e483 (diff) |
Merge "Draft of Config policy"
Diffstat (limited to 'ui-react/src/api')
-rw-r--r-- | ui-react/src/api/LoopService.js | 6 | ||||
-rw-r--r-- | ui-react/src/api/UserService.js | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ui-react/src/api/LoopService.js b/ui-react/src/api/LoopService.js index 2813a7c08..fa7cd2e48 100644 --- a/ui-react/src/api/LoopService.js +++ b/ui-react/src/api/LoopService.js @@ -22,7 +22,7 @@ export default class LoopService { static getLoopNames() { - return fetch('/restservices/clds/v2/loop/getAllNames', { method: 'GET', credentials: 'include', }) + return fetch('/restservices/clds/v2/loop/getAllNames', { method: 'GET', credentials: 'same-origin', }) .then(function (response) { console.debug("GetLoopNames response received: ", response.status); if (response.ok) { @@ -44,7 +44,7 @@ export default class LoopService { headers: { "Content-Type": "application/json" }, - credentials: 'include', + credentials: 'same-origin', }) .then(function (response) { console.debug("GetLoop response received: ", response.status); @@ -64,7 +64,7 @@ export default class LoopService { static getSvg(loopName) { return fetch('/restservices/clds/v2/loop/svgRepresentation/' + loopName, { method: 'GET', - credentials: 'include', + credentials: 'same-origin', }) .then(function (response) { console.debug("svgRepresentation response received: ", response.status); diff --git a/ui-react/src/api/UserService.js b/ui-react/src/api/UserService.js index 8f53d7b8a..22168d41b 100644 --- a/ui-react/src/api/UserService.js +++ b/ui-react/src/api/UserService.js @@ -26,7 +26,7 @@ export default class UserService { static login() { return fetch('/restservices/clds/v1/user/getUser', { method: 'GET', - credentials: 'include', + credentials: 'same-origin', }) .then(function (response) { console.debug("getUser response received, status code:", response.status); |