I have completed my OData API project with GET and POST methods for Student, Fee and Library management. The code is working in SAP Gateway Client but I need help with:
(1) I am facing CSRF token validation issue when testing POST request in Gateway Client.
(2) How can I make my API globally accessible so automation team consume API.
i'm using trail server.
Request clarification before answering.
Hello @ankitpurohitap
1. CSRF issue
First call GET with header:
x-csrf-token: fetch
Copy token from response
Use it in POST header:
x-csrf-token: <token>
Also pass cookies
2. Make API accessible
Activate service in /IWFND/MAINT_SERVICE
Use system URL:
https://<host>:<port>/sap/opu/odata/...
Thanks,
Sravan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1. first you have to fetch token, x-csrf-token: fetch
2. normally you create technical user, register, activate service in transaction /IWFND/MAINT_SERVICE, if it is not there already
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.