melonjs
    Preparing search index...

    Variable crossOrigin

    crossOrigin: string

    crossOrigin attribute to configure the CORS requests for Image and Video data element. By default (that is, when the attribute is not specified), CORS is not used at all. The "anonymous" keyword means that there will be no exchange of user credentials via cookies, client-side SSL certificates or HTTP authentication as described in the Terminology section of the CORS specification.

    crossOrigin

    loader

    undefined
    
    // allow for cross-origin texture loading
    me.loader.crossOrigin = "anonymous";

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