我正在尝试调用验证请求标头(X-Session-id)的 API 控制器。如何配置 oDataProvider 以将变量传递给请求标头?
var context = new JayData.SomeEntities({
name: 'oData',
oDataServiceHost: 'https://mydomain/RestService',
headers: { 'X-SessionId': 'f05d1c1e-b1b9-5a2d-2f44-da811bd50bd5' }//How to put value here
});