From 8988a9bcec67996259803fb73e3fe638473a8fbd Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Thu, 10 Feb 2022 21:04:31 +0100 Subject: [PATCH] [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 ffe248cbdfc70a0887970248209c586869c0855e) --- platform/javascript/js/libs/library_godot_fetch.js | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/javascript/js/libs/library_godot_fetch.js b/platform/javascript/js/libs/library_godot_fetch.js index 285e50a0350..007e7b70f52 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));