0

I'm running a JSF 2.3 Java EE 8 web application. How Can I add html headers like: ""X-XSS-Protection" HTTP header with "1; mode=block"

Application server is glassfish 5.0.

usertest
  • 2,140
  • 4
  • 32
  • 51
  • @Selaron I use JSF facelets pages (.xhtml), don't work with servlet (HttpServletResponse ) . Plus I don't want to apply this for every .xhtml page. I need something to apply in web.xml or in the admin console of glassfish. So no NOT a duplicate – usertest Nov 29 '18 at 11:39
  • 2
    Filters work perfectly fine together with JSF and they are configureable in web.xml. – BalusC Nov 29 '18 at 11:40
  • @BalusC do you have an example? so there is no way to do this in glassfish admin console? – usertest Nov 29 '18 at 11:42
  • 1
    https://stackoverflow.com/tags/servlet-filters/info – Jasper de Vries Nov 29 '18 at 12:18

0 Answers0