You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +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).
(cherry picked from commit ffe248cbdf)
This commit is contained in:
committed by
Rémi Verschelde
parent
4ad179b75d
commit
06de19a266
@@ -89,6 +89,7 @@ const GodotFetch = {
|
|||||||
method: method,
|
method: method,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body,
|
body: body,
|
||||||
|
credentials: 'include',
|
||||||
};
|
};
|
||||||
obj.request = fetch(url, init);
|
obj.request = fetch(url, init);
|
||||||
obj.request.then(GodotFetch.onresponse.bind(null, id)).catch(GodotFetch.onerror.bind(null, id));
|
obj.request.then(GodotFetch.onresponse.bind(null, id)).catch(GodotFetch.onerror.bind(null, id));
|
||||||
|
|||||||
Reference in New Issue
Block a user