Skip to Content
0

SAP ODATA - Netweaver Gateway

Apr 24, 2017 at 10:07 AM

117

avatar image

Hi All,

I am unable to 'Read' an ODATA service hosted on a SAP Gateway system(Integrated with an ABAP server). I believe the issue is due to CORS, specifically with the x-csrf-token. My development environment is on the SAP Web IDE in my desktop.

System: SAP Netweaver 7.0 (Required Add-ons have been installed)

Browser: Internet explorer.

Data from the Northwind database works fine.

I see from the IE console that an x-csrf-token was sent (x-csrf-token Fetch) but the response headers from the Netweaver gateway has no mention of the x-csrf-token. The subsequent request from my Web IDE (http://url/$batch) is met with the response "CSRF token validation failed"

Steps taken so far:

Followed this blog : https://blogs.sap.com/2014/07/11/issues-with-csrf-token-and-how-to-solve-them/

Disabled CSRF using the parameter '~CHECK_CSRF_TOKEN=0 in the OData service in SICF

Followed 1896961 - HTTP/HTTPS Configuration for SAP NetWeaver Gateway

10 |10000 characters needed characters left characters exceeded

Are you making a $ajax call or using ODataModel?

0
* Please Login or Register to Answer, Follow or Comment.

0 Answers