Skip to Content
0
Jan 31, 2023 at 10:29 AM

SAP PI/PO - CSRF token for POST request to BPM ODATA

580 Views

Dear Expects,

Could you kindly give some idea on how to fetch CSRF token from SAP PO 7.5 server before doing a POST request to standard BPM ODATA URI?. I wanted to first try this on SOAP UI before I actually create a PO interface for the same.

* To protect modifying requests such as POST against cross-site request forgery (CSRF) attacks, a valid CSRF token is required. Therefore, before you use the POST request you need to request a CSRF token with a GET request containing the header 'X-CSRF-Token' with the value 'Fetch'. Modifying requests without a valid CSRF token are rejected.

I have developed/configured REST calls for third party on PO, but now I need to call PO server for CSRF token. Which token URL should I use?.

Please help.

Thank you in advance.

Best Regards,

Kumaran