ralphskie Posted January 6, 2017 Share Posted January 6, 2017 Hello all, I have a problem testing the POST method for loggin service via rest_v2 apibeen checking this link(http://community.jaspersoft.com/documentation/tibco-jasperreports-server-rest-api-reference/v630/authentication#The_login_Service) alot and i cant solve itGET method has no problemPOST method has problem kindly see image attach for the POSTMAN any hint where am i doing wrong?Thanks Link to comment Share on other sites More sharing options...
hozawa Posted January 6, 2017 Share Posted January 6, 2017 Look under jasperserver/WEB-INF/logs to find the exact cause of the 500. Link to comment Share on other sites More sharing options...
ralphskie Posted January 6, 2017 Author Share Posted January 6, 2017 Hi Hozawahere's the logERROR 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)[/code] 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)[/code] Token is required?where should i get the token? or set it on the server?PS - notice the ending slash on the 2nd URI Link to comment Share on other sites More sharing options...
hozawa Posted January 7, 2017 Share Posted January 7, 2017 There's a wiki page about the error you've mentioned:http://community.jaspersoft.com/wiki/csrfguard-errorrequired-token-missing-request Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now