Just quick notes about making modifying requests on older (pre 2.0 SP02) and newer (post 2.0 SP02) SAP NWGW.
Notes here are taken from SAP Help
Newer gateway
Newer NWGW (post 2.0 SP02) can and should be authorized using standard CSRF token in a header.
Authentication flow in that case is
- Make non modifying (GET or HEAD) request with header field
- Make modifying request (POST, PUT, MERGE...) with header field
X-CSRF-TOKEN: Fetch
You will receive CSRF token in the response
X-CSRF-TOKEN: <token>
This is the recommended option and you should use it, if it is possible.
Older gateway
X-Requested-With=XMLHttpRequest
You also have to set that protection mechanism on the service itself.
- In t-code SICF
- Open node for your service
- Navigate to Service Data and GUI Configuration
- Fill parameters
- Parameter name: ~CHECK_CSRF_TOKEN
- Parameter value: 0/1 (enable/disable)
- Save
Compatiblity Mode for SP02 – HTTP Handler in SICF (node sdata)
(Default : X-Requested-With, to enable XSRF check use, ~CHECK_CSRF_TOKEN=1)
The request handler is /IWFND/CL_SDATA_ODATA_APP.
Standard Mode – HTTP Handler in SICF (node odata)
(Default: XSRF check, to disable and switch to X-Requested-With, use ~CHECK_CSRF_TOKEN=0)
The request handler is /IWFND/CL_SODATA_HTTP_HANDLER.
Check Commercial Cibil Report of any business before doing business with them. It will give you the idea about how well is doing business and will it be able to return money on time.
ReplyDelete