Fix: profile webhook is GET with sessionid query param
This commit is contained in:
+1
-5
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user