loader.setOptions

setOptions(options: Object) → {}

Sets the options for the loader.

 // Set the crossOrigin attribute to "anonymous"
 me.loader.setOptions({ crossOrigin: "anonymous" });

 // Enable the nocache mechanism
 me.loader.setOptions({ nocache: true });

 // Enable withCredentials
 me.loader.setOptions({ withCredentials: true });
Parameters:
Name Type Attributes Description
options Object

The options to set.

options.crossOrigin string

<optional>

The crossOrigin attribute to configure the CORS requests for Image and Video data element.

options.nocache boolean

<optional>

Enable or disable the nocache mechanism.

options.withCredentials boolean

<optional>

Indicates whether or not cross-site Access-Control requests should be made using credentials.

Returns:
Type Description
Powered by webdoc!