Hi,
I am trying to read the X-CSRF-Token from GW read service without success. Any idea? As far as I know sap.ui.model.odata.ODataModel does not have the provision to pass the header data. So I tried with OData from datajs library, but the response header is always blank. I am able to get the X-CSRF-Token when I run the service uisng firefox REST client.
Here is the code I am using.
headers:
{
"Content-Type": "application/x-www-form-urlencoded",
"X-CSRF-Token":"Fetch"
}
Thanks
Abhilash