cancel
Showing results for 
Search instead for 
Did you mean: 

Error 'CSRF Token is handled by Gateway Client.' in NetWeaver Gateway client

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

AshwinDutt
Active Contributor
0 Kudos

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

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Seems you missed screenshot.

Regards,

JK