mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-12 05:08:45 +01:00
Use a custom authorization header, to avoid conflicts with proxies using basic auth (fixes #146)
This commit is contained in:
parent
c3edc7f449
commit
3f9ddb915e
5 changed files with 44 additions and 4 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue