There was an error while loading. Please reload this page.
2 parents ccb4674 + eb0ebb8 commit 7c07440Copy full SHA for 7c07440
ui/src/api.ts
@@ -2,5 +2,5 @@ import axios from 'axios';
2
3
let port = (!process.env.NODE_ENV || process.env.NODE_ENV === 'development') ? 8000 : window.location.port;
4
export const api = axios.create({
5
- baseURL: `http://${window.location.hostname}:${port}`,
6
-})
+ baseURL: `${window.location.protocol}//${window.location.hostname}:${port}`,
+})
0 commit comments