Hello all, I have a problem testing the POST method for loggin service via rest_v2 api
been checking this link(http://community.jaspersoft.com/documentation/tibco-jasperreports-server...) alot and i cant solve it
GET method has no problem
POST method has problem kindly see image attach for the POSTMAN
any hint where am i doing wrong?
Thanks
3 Answers:
Posted on January 6, 2017 at 12:44am
Hi Hozawa
here's the log
ERROR CsrfGuard,http-apr-8080-exec-3:44 - potential cross-site request forgery (CSRF) attack thwarted (user:<anonymous>, ip:127.0.0.1, method:POST, uri:/jasperserver/rest/login, error:required token is missing from the request)
2017-01-06 16:40:50,877 ERROR CsrfGuard,http-apr-8080-exec-5:44 - potential cross-site request forgery (CSRF) attack thwarted (user:<anonymous>, ip:127.0.0.1, method:POST, uri:/jasperserver/rest/login/, error:required token is missing from the request)
Token is required?where should i get the token? or set it on the server?
PS - notice the ending slash on the 2nd URI
Posted on January 6, 2017 at 11:59pm
There's a wiki page about the error you've mentioned:
http://community.jaspersoft.com/wiki/csrfguard-errorrequired-token-missi...