Skip to Content
0
Jun 16, 2020 at 06:38 PM

Fetch csrf token from odata service using abap

1647 Views Last edit Jun 16, 2020 at 06:42 PM 2 rev

Hi,

I have to make a patch request in a custom program and for that we are using odata service. We may need to pass csrf token, so for to fetch initially have used cl*_rest_client to call our own system using URL of odata service with cookies enabled. But it is showing a login popup which we want to avoid as we are calling from the system. If we disable popup, getting 401 unauthorized error. Can you guide the steps to fetch the token. Also we have added ~check_csrf_token =0 parameter to the odata service.

Regards

Aditya