ajaxWithCredentials Property

Summary

Indicates whether to send credentials with the XMLHttpRequest for an image.

Syntax
TypeScript
JavaScript
Object.defineProperty(ImageLoader.prototype, 'ajaxWithCredentials', 
	get: function(), 
	set: function(value) 
) 
ajaxWithCredentials: boolean; 

Property Value

true if the image should send credentials with the image; false otherwise. The default value is DefaultAjaxWithCredentials, which is false.

Remarks

This property is only useful for AJAX with ImageLoaderUrlMode.AjaxDataUrl or ImageLoaderUrlMode.AjaxXml. For ImageLoaderUrlMode.ImageUrl, see DefaultImgCrossOrigin and ImgCrossOrigin.

The ImageLoader's AjaxWithCredentials value is the actual value used in setting the XMLHttpRequest.withCredentials property in Xhr.

Each new instance of ImageLoader will set AjaxWithCredentials to the current value of the static DefaultAjaxWithCredentials.

Requirements
Target Platforms
Help Version 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.