Hi All.,
I am trying to get X-CSRF-Token value using the below code., it is running fine in chrome browser. Problem is it is not working fine with Firefox/Edge browser, anyone pls help me on this?
var URI = url + "/Employees"; |
OData.request
({
requestUri: URI,
method: "GET",
headers:
{ | |
"X-Requested-With": "XMLHttpRequest", | |
"Content-Type": "application/atom+xml", | |
"DataServiceVersion": "2.0", | |
"X-CSRF-Token":"Fetch" | |
} |
},
function (data, response)
{ | |
CSRF_TOKEN = response.headers['x-csrf-token']; | |
}); |
regards,
Mahi