melonJS
    Preparing search index...

    Variable crossOrigin

    crossOrigin: string

    The crossOrigin attribute the loader gives the <video> and <script> elements it creates, and the images of a glTF model: "anonymous" sends no user credentials (cookies, client-side TLS certificates or HTTP authentication) to another origin, "use-credentials" sends them, as withCredentials does.
    Every other asset (images, JSON, maps, binary files, buffered audio...) is always requested with CORS, whatever this says: an asset on another origin loads when its server allows it (an Access-Control-Allow-Origin header), and fails to load, with an error naming the asset, when it does not.

    undefined
    

    since 20.4.0 as a setting: it is read-only, set it with setOptions. It is a module binding, so assigning to it (loader.crossOrigin = "anonymous") throws a TypeError, and always did.

    // play videos from another origin, without credentials
    loader.setOptions({ crossOrigin: "anonymous" });
    await loader.preload(resources);