Skip to content

Commit

Permalink
Fixing authentication mode #3837
Browse files Browse the repository at this point in the history
  • Loading branch information
lorriborri committed Jan 30, 2025
1 parent fe96bee commit 23ebe39
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion sechub-web-ui/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const config = ref({
HOST: String(import.meta.env.VITE_API_HOST) || 'http://localhost:3000',
USERNAME: String(import.meta.env.VITE_API_USER) || '',
PASSWORD: String(import.meta.env.VITE_API_PASSWORD) || '',
LOCAL_DEV: String(import.meta.env.VITE_API_LOCAL_DEV) || 'false',
LOCAL_DEV: Boolean(import.meta.env.VITE_API_LOCAL_DEV === 'true') || false,
})

// Overrides local environment variables after project compilation
Expand Down
1 change: 0 additions & 1 deletion sechub-web-ui/src/services/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ if (config.value.LOCAL_DEV) {
apiConfig = new Configuration({
basePath: config.value.HOST,
headers: {
// todo: check if cookie set by server is sent back (for auth reasons)
'Content-Type': 'application/json',
},
})
Expand Down

0 comments on commit 23ebe39

Please sign in to comment.