How can one set xhrFields {withcredentials: true} when using an OData-V4 data source in an MVC Server Wrapper?
I've gotten this far in the data source using the Fluent API:
.DataSource(dataSource => dataSource
.Custom()
.Type(
"odata-v4"
)
.Transport(transport =>
{
transport.Read(read => read.Url(
"https://xxx/OData/Employee/FindEmployees"
));
})
.ServerFiltering(
true
)
)
But I need to be able to include credentials like am doing here:
$(
"#EmpID"
).kendoComboBox({
placeholder:
"Select employee"
,
dataTextField:
"FullName"
,
dataValueField:
"EmpID"
,
filter:
"startswith"
,
autoBind:
false
,
minLength: 3,
dataSource: {
type:
"odata-v4"
,
serverFiltering:
true
,
transport: {
read: {
xhrFields: {
withCredentials:
true
}
}
}
}
});