nginx - JasperServer proxy CSRF error -


i have new installation of jasperreports server 6.2 using bundled tomcat on ubuntu 14.04 lts nginx proxy can access https://mydomain.xyz/jasperserver. works, i'm not able manage users , roles. if bypass nginx , go straight tomcat http://123.123.123.123:8080/jasperserver, works perfectly. log indicates:

2016-02-28 19:44:08,024 error csrfguard,http-nio-8080-exec-3:44 - potential cross-site request forgery (csrf) attack thwarted (user:, ip:127.0.0.1, uri:/jasperserver/flow.html, error:required token missing request)

this same older question: running jasperserver behind nginx: potential csrf attack. i've tried both mitigations suggested, , it's still not working.

  • i tried setting underscores_in_headers on;, first in http, in server, in both.
  • when didn't work, removed underscores jasper_csrf_token , owasp_csrftoken in web-inf/esapi/owasp.csrfguard.properties

i rebooted server sure cleared , restarted, still not working.

i'm seeking suggestions resolution and/or guidance on diagnose problem better. i'm new jasper , java/tomcat skills rusty.

to solve problem, think forgot allow underscores in nginx headers

server { underscores_in_headers on;


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -