diff options
Diffstat (limited to 'src/frontend/components/HomeHeader.vue')
-rw-r--r-- | src/frontend/components/HomeHeader.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/frontend/components/HomeHeader.vue b/src/frontend/components/HomeHeader.vue index f0366a3..8c27c93 100644 --- a/src/frontend/components/HomeHeader.vue +++ b/src/frontend/components/HomeHeader.vue @@ -22,7 +22,7 @@ export default { watch(() => { - fetch(`http://localhost:1337/api/v1/info`) + fetch(`${window.location.protocol}//${window.location.host}/api/v1/info`) .then((res) => res.json()) .then((data) => { |