on 11-08-2014 10:09 AM
Hello All,
I am trying to test the PUT method in the NetWeaver Gateway, so for the same, I am first fetching the data using GET method.
Also, I want to fetch the X-CSRF-Token value while using the GET method. So I tried adding a header parameter in the HTTP request, with Header Name = X-CSRF-Token and Value = Fetch.
As soon as I click on the OK button, I am getting error "CSRF Token is handled by Gateway Client.". Below is the screen shot of the same:
Kindly suggest.
Best Regards,
RM
Hello Rahul,
Yes its a valid error.
When u consume/fire any service in GW Client ( T-Code -> /iwfnd/gw_client ) u need not to explicitly send the token value in the HTTP header.
GW Client itself will internally handle sending of CSRF Token. Hence no need of sending.
U need to explicitly send the CSRF Token value in the HTTP Header when u r consuming/firing from the Browser. i.e., when u fire service from FireFox Rest Client or Chrome POST Man / Advanced REST Client.
U can use the metadata URL of ur UPDATE service only to get the CSRF Token
U need not to fire GET Service at all. This just an additional info.
Regards,
Ashwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.