cancel
Showing results for 
Search instead for 
Did you mean: 

How to add X-CSRF Token in Native IOS when posting the data using SP10?

Former Member
0 Kudos

Hi All,

When im trying to create , update or delete the record using the SODATAONLINESTORE (SP10) .Im getting below error.

com.sap.smp.odataonline ERROR Error response: CSRF token validation failed File:SODataRequestExecutionDefault.m

How fetch the x-CSRF token when using sodataonlinestore ?

Thanks,

Praveen Kumar Addiki.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I was receiving the same error - I reauthenticated the app, restarted the Gateway server (if your in development), and the error went away

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Did you try tips mentioned in this guide?

Looping

I would suggest you to try with REST client first if you are able to fetch csrf-token for the given odata service. SMP 3.0 : REST API Application Development

Regards,

JK

Former Member
0 Kudos

Hi Jitendra,

I have followed the Mobile Application Development Platform for Developers - Native Apps

to create ,update or delete.But it is not working for me .Its asking for the X-CSRF Token .

Thanks,

Praveen Kumar Addiki.