From 89c8a36d8bb3f1bcd994fd8a571e7a812ab6c1d1 Mon Sep 17 00:00:00 2001 From: Kato Date: Wed, 2 Sep 2026 20:09:10 +0000 Subject: [PATCH] Fix: profile webhook is GET with sessionid query param --- js/main.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/js/main.js b/js/main.js index d640b31..9483417 100644 --- a/js/main.js +++ b/js/main.js @@ -264,11 +264,7 @@ async function openProfileModal() { const sessionid = getCookie('sessionid'); if (!sessionid) { alert('Bitte melden Sie sich an.'); return; } try { - const response = await fetch(PROFILE_URL, { - method: 'POST', - headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ sessionid: sessionid }) - }); + const response = await fetch(PROFILE_URL + '?sessionid=' + encodeURIComponent(sessionid)); console.log('openProfileModal response:', response.status, await response.clone().json()); if (response.ok) { const data = await response.json();