Skip to content

Commit

Permalink
Minio fix, for when we add it in the future. (#497)
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 authored May 3, 2023
1 parent d617657 commit ad7c11d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "business-edit-ui",
"version": "4.3.6",
"version": "4.3.7",
"private": true,
"appName": "Edit UI",
"sbcName": "SBC Common Components",
Expand Down
9 changes: 6 additions & 3 deletions src/utils/AxiosInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ import * as Sentry from '@sentry/browser'
const instance = axios.create()

instance.interceptors.request.use(
config => {
request => {
if (request.url?.startsWith('https://minio')) {
return request
}
const kcToken = sessionStorage.getItem(SessionStorageKeys.KeyCloakToken)
config.headers.common['Authorization'] = `Bearer ${kcToken}`
return config
request.headers.common['Authorization'] = `Bearer ${kcToken}`
return request
},
error => Promise.reject(error)
)
Expand Down

0 comments on commit ad7c11d

Please sign in to comment.