Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

RESTFul service in ABAP using SICF - X-CSRF-Token Blank

former_member195698
Active Contributor
0 Kudos
569

Hello,

I have created RESFul service in ABAP using SICF and Handler Class. The GET method of the service is working but on testing POST method, I am getting an error "CSRF token validation failed".

I tried to fetch the CSRF token using the GET method by passing in the Header " X-CSRF-Token:Fetch ", but I am not getting anything back in the Response Header.

*Is there any settings to be done in the ABAP System?

*Any other Header Tag to be passed in the GET method?

Please help.

Thanks & Regards,

Abhishek Jolly

2 REPLIES 2

Former Member
0 Kudos
261

Hi Abhishek,

Have you also kept the content type token?

Regards,

Ashish Kumar

0 Kudos
261

Hi Ashish,

Yes, I have kept the Content Type Token also.


Regards,

Abhishek