cancel
Showing results for 
Search instead for 
Did you mean: 

SCP - Odata Provisionig - Disable CSRF TOKEN

former_member269988
Participant
0 Kudos

Hi Dear,

I need send a post request using odata, but i don't send CSRF token. Using this link(https://help.sap.com/saphelp_gateway20sp12/helpdata/en/e6/cae27d5e8d4996add4067280c8714e/frameset.ht... ) I got it disable toke to send request in onpremise Odata(using in the header request X-Requested-With value":"X"), but in SCP its not possible. Does anyone have any idea how to send a post to odata in the cloud without sending the csrf token or disabling its check?

<br>

thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member269988
Participant
0 Kudos

I resolved using CPI Flow.

Answers (1)

Answers (1)

CarlosRoggan
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Wilson,
I strongly assume that in SCP there's no mechanism in place to disable the csrf-protection.
While it makes very much sense in productive environment, the csrf-token it is tedious during dev phase.
Maybe you can create a script to fetch it?
Run a HEAD request to the service-document-URL. This is very fast call and returns the token
Kind Regards,
Carlos