Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3212

Issue with X-CSRF-Token fetch

$
0
0

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


Viewing all articles
Browse latest Browse all 3212

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>