DefaultImgCrossOrigin Field


Indicates the default for ImgCrossOrigin.

ImageLoader.defaultImgCrossOrigin = (default value); 
static defaultImgCrossOrigin: string; 

Field Value

A string indicating what the crossOrigin attribute of the HTMLImageElement used in the request should be set to for new ImageLoader instances. The default value is 'anonymous'. Any string is acceptable, but other important values include 'use-credentials' and null.


This property is only useful with ImageLoaderUrlMode.ImageUrl. For ImageLoaderUrlMode.AjaxDataUrl or ImageLoaderUrlMode.AjaxXml, see DefaultAjaxWithCredentials and AjaxWithCredentials.

DefaultImgCrossOrigin is used to set the ImgCrossOrigin instance property for each new ImageLoader. The ImageLoader's ImgCrossOrigin value is the actual value used in setting the HTMLImageElement.crossOrigin in the WorkingImageElement.

For more information, including a discussion of the effect of the different string values, see ImgCrossOrigin.


Target Platforms

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly