Skip to content

Commit

Permalink
fix: Authorization grant server always on http.
Browse files Browse the repository at this point in the history
  • Loading branch information
QuickSander committed Jul 25, 2021
1 parent 96411b7 commit 7471d77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homebridge-ui/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ <h3>Setup</h3>
});

const host = window.location.host.replace(/:[0-9]+/, '');
const redirectBaseUrl = `${window.location.protocol}//${host}:${serverPort}/`;
const redirectBaseUrl = `http://${host}:${serverPort}/`; //`${window.location.protocol}//${host}:${serverPort}/`;
const redirectUrl = redirectBaseUrl+'auth_grant'
console.log('Redirect URL set to: '+redirectUrl);

Expand Down

0 comments on commit 7471d77

Please sign in to comment.