From f28b9498ae1281c48211b29ac3d85eaa890fdfc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20Fr=C3=B6hle?= Date: Mon, 16 Sep 2024 10:31:18 +0200 Subject: [PATCH] use window.INSOMNIA_URL for fetch, if we overrider it. I had the issue that the rootPath is not used correctly, i had to override it with window.INSOMNIA_URL so I think its need to fetch from window.INSOMNIA_URL and not the url. --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index e27d47f..52432f4 100644 --- a/src/main.js +++ b/src/main.js @@ -14,7 +14,7 @@ async function app() { try { // eslint-disable-next-line no-undef - const json = await fetch(url, { + const json = await fetch(window.INSOMNIA_URL, { method: 'GET', credentials: 'same-origin', headers: {