on 10-23-2015 6:30 AM
hello experts,
can someone explain about request, response and X-CSRF token in UI5 while connecting from eclipse to back end for create, update and delete operations.
thank you.
Hi Phanindra,
you will need the X-CSRF-Token to send it in the headers of a POST/PUT HTTP Request.
To get it from backend, simply call a GET HTTP method with a header X-CSRF-Token:Fetch, and you will receive in the response a header which looks like x-csrf-token:ad8a7asdsn8sa==
You need to put this token in all the headers of a modifying operation, POST for an example.
It's a security mechanism from the backend. If you're not authenticated properly you won't be able to fetch the CSRF token.
Hope this helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Phanindra,
Request:
1.To trigger/get information from user to database
Flow:
UserScreen ----> Gateway Service ----->ECC
Response:
It returns your required information under success call back function
X-CSRF:
While creating/updating the records. we want csrf-token.
How to fetch X-CSRF-Token | SCN
Thanks,
Karthik A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.