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 26, 2021
1 parent 0a905c2 commit 4e41bc8
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 4e41bc8

Please sign in to comment.