Skip to content

Commit

Permalink
fix: auth check api not working with proxy
Browse files Browse the repository at this point in the history
Fixes #3553
  • Loading branch information
robertsLando committed Jan 25, 2024
1 parent 56cf577 commit 366b8dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docker/nginx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ Test docker-compose file to try running zwave-js-ui behind a proxy with a custom
```bash
docker-compose up -d
```

Then go to <https://localhost/zwave> to access the UI.
2 changes: 1 addition & 1 deletion src/apis/ConfigApis.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default {
// const response = await request.get('/auth-enabled')
// return response.data

const response = await fetch('/api/auth-enabled', {
const response = await fetch(axios.defaults.baseURL + '/auth-enabled', {
credentials: 'include',
redirect: 'manual',
headers: {
Expand Down

0 comments on commit 366b8dc

Please sign in to comment.