indicates whether or not cross-site Access-Control requests should be made using credentials such as cookies, authorization headers or TLS client certificates. Setting withCredentials has no effect on same-site requests.
false Copy
false
since 20.4.0, read-only — set it with setOptions. This is a module binding, so assigning to it throws a TypeError; the example below never worked.
TypeError
// enable withCredentials, for assets behind a session cookie or loginme.loader.setOptions({ withCredentials: true });// set all resources to be loadedme.loader.preload(game.resources, () => this.loaded()); Copy
// enable withCredentials, for assets behind a session cookie or loginme.loader.setOptions({ withCredentials: true });// set all resources to be loadedme.loader.preload(game.resources, () => this.loaded());
indicates whether or not cross-site Access-Control requests should be made using credentials such as cookies, authorization headers or TLS client certificates. Setting withCredentials has no effect on same-site requests.