mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 13:43:15 +00:00
[HTML5] Fetch API now passes credentials.
Used default value before, i.e. "same-origin", now uses "include" (i.e. include for cross-origin if cross-origin is allowed).
This commit is contained in:
parent
b2da1a5c20
commit
ffe248cbdf
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user