on 12-29-2013 1:44 PM
Hi Experts,
I have been facing the following issue:
When i am executing the odata service from gateway client its working fine. but while running the same service from UI, it's throwing an error as "CSRF token failed"
ISSUE: If i run the service in chrome browser initially without mentioning the logon details in SICF, am able to getting the response. if i do the same by mentioning the logon details in SICF for the same service it's saying an error as "CSRF Token failed".
CASE 1:
NOTE: The above thing is happening if i mentioned user name and password details in SICF service as shown below.
input service:
service Response :
if i didn't mention the logon details it's working fine from UI (chrome browser ). as shown below.
below is the input odata service:
service response:
CASE 2:
NOTE: If i didn't mention the logon details it's working fine ,and if i changed the logon details and run the service in the same browser by clearing the cookies it's also working fine.
Is there any authentications required to run the service for new chrome user, Please guide on this.
If you help on this would be very helpful.
Thanks in advance,
Ravi varma.
Hi Ravi,
- Gateway client works because it internally handles CSRF automatically.
About CSRF failure when logon details are provided in ICF node
- When you provide logon details in the ICF node, you will not be getting CSRF token from the system. This is because CSRF will work only for services that require authentication. Check more here.
You can set a breakpoint in your javascript code and verify this.
regards
Krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.