Skip to content

Commit

Permalink
Include Authorization header even for None auth method
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Oct 29, 2021
1 parent 6af39c4 commit e4064e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/Shared/Services/Login.service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ export class LoginService {
const headers = new window.Headers();
if (!!token && !!method) {
headers.set('Authorization', `${method} ${token}`)
} else if (method === AuthMethod.NONE) {
headers.set('Authorization', AuthMethod.NONE);
}
return headers;
}
Expand Down

0 comments on commit e4064e4

Please sign in to comment.