mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 14:00:06 +02:00
Fixed #119: forced redirection to login even with API_AUTHENTICATION_REQUIRED=False
This commit is contained in:
parent
0f5b1c295e
commit
4298c4236e
6 changed files with 14 additions and 3 deletions
|
@ -30,6 +30,9 @@ export default {
|
|||
},
|
||||
apiSettings: {
|
||||
beforeXHR: function (xhrObject) {
|
||||
if (!self.$store.state.auth.authenticated) {
|
||||
return xhrObject
|
||||
}
|
||||
xhrObject.setRequestHeader('Authorization', self.$store.getters['auth/header'])
|
||||
return xhrObject
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue