asdasd
This commit is contained in:
@@ -286,10 +286,16 @@
|
|||||||
const fetchOptions = {
|
const fetchOptions = {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
credentials: 'include',
|
|
||||||
// Wichtig: Die übergebenen Optionen nicht vergessen zu mergen
|
// Wichtig: Die übergebenen Optionen nicht vergessen zu mergen
|
||||||
...options
|
...options
|
||||||
};
|
};
|
||||||
|
fetchOptions.headers = {
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
...(options?.headers || {}),
|
||||||
|
};
|
||||||
|
if (!fetchOptions.credentials || fetchOptions.credentials === 'omit') {
|
||||||
|
fetchOptions.credentials = 'include';
|
||||||
|
}
|
||||||
|
|
||||||
let data = {};
|
let data = {};
|
||||||
let rawResponse = '';
|
let rawResponse = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user