Improvements to URL handling in the webapp allowing for SSL (when behind a proxy) #104296
@ -1,9 +1,9 @@
|
||||
let url = new URL(window.location.href);
|
||||
// Uncomment this when the web interface is running on a different port than the
|
||||
// API, for example when using the Vite devserver. Set the API port here.
|
||||
if (url.port == '8081') {
|
||||
url.port = '8080';
|
||||
}
|
||||
// if (url.port == '8081') {
|
||||
// url.port = '8080';
|
||||
// }
|
||||
|
||||
const URLs = {
|
||||
api: `${url.protocol}//${url.hostname}:${url.port}/`,
|
||||
|
Loading…
Reference in New Issue
Block a user