Skip to content
Snippets Groups Projects
Commit cc779b4d authored by Ben Wheeler's avatar Ben Wheeler
Browse files

Attempt to fix storage xhr request; didn’t work

parent 2dac6cf5
No related branches found
No related tags found
No related merge requests found
......@@ -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
};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment