diff --git a/src/lib/storage.js b/src/lib/storage.js index 24a9e63ccf530aeca88bfe59b8d226ce52013438..a1799f303ae8a8239d7956bc64e32ef255ff9fe9 100644 --- a/src/lib/storage.js +++ b/src/lib/storage.js @@ -34,14 +34,22 @@ class Storage extends ScratchStorage { getProjectCreateConfig () { return { url: `${this.projectHost}/`, - json: true, + headers: { + Accept: 'application/json' + }, + // NOTE: using json: true here unexpectedly breaks saving + // json: true, withCredentials: true }; } getProjectUpdateConfig (projectAsset) { return { url: `${this.projectHost}/${projectAsset.assetId}`, - json: true, + headers: { + Accept: 'application/json' + }, + // NOTE: using json: true here unexpectedly breaks saving + // json: true, withCredentials: true }; }