From 2dacb9bd185db2c05de435d2bd446865e158e483 Mon Sep 17 00:00:00 2001 From: sebdet Date: Wed, 17 Jul 2019 13:48:44 +0200 Subject: Draft of Config policy Initial code of the config policy window using the Json Editor version from NPM Issue-ID: CLAMP-426 Change-Id: I4ff3e63c463320706031c703afa22417b321faa3 Signed-off-by: sebdet --- ui-react/src/api/LoopService.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ui-react/src/api/LoopService.js') diff --git a/ui-react/src/api/LoopService.js b/ui-react/src/api/LoopService.js index 2813a7c0..fa7cd2e4 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); -- cgit 1.2.3-korg