Browse Source

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

Rémi Verschelde 3 years ago
parent
commit
73f1312086
1 changed files with 1 additions and 0 deletions
  1. 1 0
      platform/javascript/js/libs/library_godot_fetch.js

+ 1 - 0
platform/javascript/js/libs/library_godot_fetch.js

@@ -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));