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

x-csrf-token value in Odata Service PUT operation

$
0
0

Hello Experts,

 

I have created an Odata Service for flight demo.

 

I have successfully implemented the GET_ENTITY & GET_ENTITYSET methods and tested them.

 

Now i am trying to implement the CREATE_ENTITY method. Data and Model both classes are up to date.

 

Now I am trying to call the PUT method of REST in Mozilla Firefox for testing purpose.

 

I have installed the REST CLIENT Add-on for Firefox.

 

Odata 1.PNG

 

After clicking the Send button i am getting the below error.

 

"CSRF token validation failed"

 

Odata2.PNG

 

 

The cause of this error is i have supplied wrong value for x-csrf-token.

 

My Question is from where can i get the value of x-csrf-token when i am calling an Odata service for testing purpose from a browser with rest client add-on installed?


Viewing all articles
Browse latest Browse all 8150

Trending Articles



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