melonJS
    Preparing search index...

    Variable withCredentials

    withCredentials: boolean = false

    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
    

    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.

    // enable withCredentials, for assets behind a session cookie or login
    me.loader.setOptions({ withCredentials: true });

    // set all resources to be loaded
    me.loader.preload(game.resources, () => this.loaded());