Skip to content

Commit

Permalink
Fix Authorization header value for unauthenticated users
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-bcgov committed Dec 21, 2024
1 parent b073d58 commit 39985f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/app/helpers/utility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export const getAxiosInstance = () => {
baseURL: API,
// timeout: 2000,
headers: {
Authorization: 'Bearer ' + user?.access_token,
Authorization: `Bearer ${user?.access_token || ''}`,
requestID: generateRequestId(),
'Access-Control-Allow-Origin': '*',
'Content-Type': 'application/json',
Expand Down

0 comments on commit 39985f3

Please sign in to comment.