Allow any HTTP headers, send cookies on same origin

This commit is contained in:
Marc Gibbons
2017-03-29 17:18:41 -04:00
parent ec46a22df5
commit a1e5f2198e
5 changed files with 18 additions and 17 deletions
+2 -1
View File
@@ -14,8 +14,9 @@ export default function downloadUrlPlugin (toolbox) {
fetch({
url,
loadSpec: true,
credentials: "same-origin",
headers: {
"Accept": "application/json"
"Accept": "application/json,*/*"
}
}).then(next,next)