on 08-20-2020 6:22 PM
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
I resolved using CPI Flow.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.