Where can I set security HTTP headers in a Play! framework web application project? I want to set headers like X-Content-Type-Options to nosniff and X-Frame-Options to DENY.
I have tried to set these headers in nginx.conf file, but it is not working with ZAP tool as ZAP tool is giving an alert that these headers are missing after setting it into this file.
link: https://github.com/playframework/playframework/pull/2524
I have tried the solution in the documentation on Configuring Security Headers but the class SecurityHeadersFilter is not present in the package said.
I am using Play! 2.2.1 and Java is used for the controllers.



SecurityHeadersFilterwas only added in Play 2.3 - Donovan Muller