Use a custom authorization header, to avoid conflicts with proxies using basic auth (fixes #146)
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user