This commit is contained in:
2025-12-06 02:44:54 +01:00
parent f854588b64
commit a966e6dbb4

View File

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