diff --git a/frontend/src/data/archive-api.js b/frontend/src/data/archive-api.js index 21724b6bd7..bd899214df 100644 --- a/frontend/src/data/archive-api.js +++ b/frontend/src/data/archive-api.js @@ -13,6 +13,7 @@ function revive (feature) { method: 'POST', headers, body: JSON.stringify(feature), + credentials: 'include', }).then(throwIfNotSuccess); } diff --git a/frontend/src/data/feature-api.js b/frontend/src/data/feature-api.js index 1cce6c556a..fa4697e082 100644 --- a/frontend/src/data/feature-api.js +++ b/frontend/src/data/feature-api.js @@ -24,6 +24,7 @@ function create (featureToggle) { .then(() => fetch(URI, { method: 'POST', headers, + credentials: 'include', body: JSON.stringify(featureToggle), })) .then(throwIfNotSuccess); @@ -33,6 +34,7 @@ function validate (featureToggle) { return fetch(URI_VALIDATE, { method: 'POST', headers, + credentials: 'include', body: JSON.stringify(featureToggle), }).then(throwIfNotSuccess); } @@ -42,6 +44,7 @@ function update (featureToggle) { .then(() => fetch(`${URI}/${featureToggle.name}`, { method: 'PUT', headers, + credentials: 'include', body: JSON.stringify(featureToggle), })) .then(throwIfNotSuccess); @@ -50,6 +53,7 @@ function update (featureToggle) { function remove (featureToggleName) { return fetch(`${URI}/${featureToggleName}`, { method: 'DELETE', + credentials: 'include', }).then(throwIfNotSuccess); } diff --git a/frontend/src/data/strategy-api.js b/frontend/src/data/strategy-api.js index d466805ae9..7930f4c901 100644 --- a/frontend/src/data/strategy-api.js +++ b/frontend/src/data/strategy-api.js @@ -13,6 +13,7 @@ function create (strategy) { method: 'POST', headers, body: JSON.stringify(strategy), + credentials: 'include', }).then(throwIfNotSuccess); } @@ -20,6 +21,7 @@ function remove (strategy) { return fetch(`${URI}/${strategy.name}`, { method: 'DELETE', headers, + credentials: 'include', }).then(throwIfNotSuccess); }