Clear Up
SharpKit Reference

AjaxSettings.xhrFields Property

A map of fieldName-fieldValue pairs to set on the native XHR object. For example, you can use it to set withCredentials to true for cross-domain requests if needed.

Namespace: SharpKit.jQuery

Class: AjaxSettings

Syntax

public object xhrFields { get; set; }

Return Value

Type: System.Object

Examples

$.ajax({url: a_cross_domain_url,xhrFields: {withCredentials: true}});
            
    In jQuery 1.5, the withCredentials property was not propagated to the native XHR and thus CORS requests requiring it would ignore this flag. For this reason, we recommend using jQuery 1.5.1+ should you require the use of it.
© Copyright 2005-2011 SharpKit. All rights reserved.