There is a set of property files that help control the settings for the JasperReports Server functionality that prevents Cross-Site Request Forgery (CSRF). The key files are described in the JasperReports Server Administrator Guide.
One of these properties files refers to the JasperReports Server “webapp name”, but it is not currently automatically updated by the installation procedure. This file is at the following location:
<appserver-path>/
If you change the name of your webapp from the default of “
So, if you modify your default.master.properties like so:
# webAppNamePro =
webAppNamePro = jasperserver-inst2
And then do an installation (using the js-install
Change:
org.owasp.csrfguard.NewTokenLandingPage=/
org.owasp.csrfguard.action.Redirect.Page=/
To:
org.owasp.csrfguard.NewTokenLandingPage=/jasperserver-inst2/login.html
org.owasp.csrfguard.action.Redirect.Page=/jasperserver-inst2/login.html