diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2022-02-10 21:04:31 +0100 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2022-02-10 22:22:03 +0100 |
commit | ffe248cbdfc70a0887970248209c586869c0855e (patch) | |
tree | 7256f58258c2f31d4c19b483fecc168a46d69684 /platform | |
parent | b2da1a5c204e2ed396f2afe5c4dc58d6ae4ca6d5 (diff) |
[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).
Diffstat (limited to 'platform')
-rw-r--r-- | platform/javascript/js/libs/library_godot_fetch.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/javascript/js/libs/library_godot_fetch.js b/platform/javascript/js/libs/library_godot_fetch.js index 285e50a035..007e7b70f5 100644 --- a/platform/javascript/js/libs/library_godot_fetch.js +++ b/platform/javascript/js/libs/library_godot_fetch.js @@ -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)); |