From b60c6cba8628fc4e832509f3452335cf3474dc8a Mon Sep 17 00:00:00 2001 From: neri Date: Thu, 27 Jul 2023 19:11:25 +0200 Subject: [PATCH] fix: make fetching work on any domain --- metapage.js.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metapage.js.html b/metapage.js.html index b56e770..aa3c980 100644 --- a/metapage.js.html +++ b/metapage.js.html @@ -2,7 +2,7 @@ // https://git.ctdo.de/ctdo/wikijs-metabot/ async function graphql(query) { - const res = await fetch('https://wiki.ctdo.de/graphql', { + const res = await fetch('/graphql', { method: 'POST', headers: { 'Content-Type': 'application/json',