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 = '';