on 09-28-2020 5:47 PM
Hi,
I have implemented GET_ENTITY, GET_ENTITYSET, UPDATE_ENTITY methods in the OData service. When I try to execute OData service put method I am getting the error 403 forbidden XCSRF token required in HTTP response. I am passing x-csrf-token = fetch in GET method URL and its value in PUT method URL.
Can anyone please suggest to resolve this issue?
Thanks
Pallavi
Here is a similar case Pallavi,
https://stackoverflow.com/questions/42439795/csrf-403-forbidden-invalid-csrf-token
Not sure if what you have there is synchronous or asynchronous, but I'd suggest you take a look.
I found the code examples to be helpful.
Cheers,
Luis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Luis,
Thanks for your response.
I have tried to test the OData service using postman and followed the same steps as specified in this blog. But still same error message.
Please find the error snapshot.
https://blogs.sap.com/2020/03/27/using-postman-for-odata-netweaver-gateway-testing-crud-methods/
User | Count |
---|---|
74 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.