From a966e6dbb43160726103ea834ec7e8bb9d198087 Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Sat, 6 Dec 2025 02:44:54 +0100 Subject: [PATCH] asdasd --- public/editor/bridge-core.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/public/editor/bridge-core.js b/public/editor/bridge-core.js index 7f285bf..4d4efc7 100644 --- a/public/editor/bridge-core.js +++ b/public/editor/bridge-core.js @@ -286,10 +286,16 @@ const fetchOptions = { method: 'GET', headers: { 'Content-Type': 'application/json' }, - credentials: 'include', // Wichtig: Die übergebenen Optionen nicht vergessen zu mergen ...options }; + fetchOptions.headers = { + 'Content-Type': 'application/json', + ...(options?.headers || {}), + }; + if (!fetchOptions.credentials || fetchOptions.credentials === 'omit') { + fetchOptions.credentials = 'include'; + }                                  let data = {};                 let rawResponse = '';