Use a custom authorization header, to avoid conflicts with proxies using basic auth (fixes #146)

This commit is contained in:
Deluan
2020-04-06 16:03:20 -04:00
parent c3edc7f449
commit 3f9ddb915e
5 changed files with 44 additions and 4 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ const httpClient = (url, options = {}) => {
}
const token = localStorage.getItem('token')
if (token) {
options.headers.set('Authorization', `Bearer ${token}`)
options.headers.set('X-ND-Authorization', `Bearer ${token}`)
}
return fetchUtils.fetchJson(url, options).then((response) => {
const token = response.headers.get('authorization')