Merge pull request #57934 from Faless/js/4.x_fetch_creds

This commit is contained in:
Rémi Verschelde 2022-02-11 00:06:07 +01:00 committed by GitHub
commit 73f1312086
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,6 +89,7 @@ const GodotFetch = {
method: method,
headers: headers,
body: body,
credentials: 'include',
};
obj.request = fetch(url, init);
obj.request.then(GodotFetch.onresponse.bind(null, id)).catch(GodotFetch.onerror.bind(null, id));