asdasd
This commit is contained in:
@@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user