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');
|
const sessionid = getCookie('sessionid');
|
||||||
if (!sessionid) { alert('Bitte melden Sie sich an.'); return; }
|
if (!sessionid) { alert('Bitte melden Sie sich an.'); return; }
|
||||||
try {
|
try {
|
||||||
const response = await fetch(PROFILE_URL, {
|
const response = await fetch(PROFILE_URL + '?sessionid=' + encodeURIComponent(sessionid));
|
||||||
method: 'POST',
|
|
||||||
headers: { 'Content-Type': 'application/json' },
|
|
||||||
body: JSON.stringify({ sessionid: sessionid })
|
|
||||||
});
|
|
||||||
console.log('openProfileModal response:', response.status, await response.clone().json());
|
console.log('openProfileModal response:', response.status, await response.clone().json());
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
|
|||||||
Reference in New Issue
Block a user