Class ContentSecurityPolicyFilter

  • All Implemented Interfaces:
    javax.servlet.Filter
    Direct Known Subclasses:
    AdminContentSecurityPolicyFilter, HttpBindContentSecurityPolicyFilter

    public class ContentSecurityPolicyFilter
    extends Object
    implements javax.servlet.Filter
    Adds Content-Security-Policy headers to HTTP responses. This filter uses the values from to-be-supplied SystemProperty instances to configure if HTTP response headers are to be added, and if so, what value to add.
    Author:
    Guus der Kinderen, guus@goodbytes.nl
    • Method Detail

      • doFilter

        public void doFilter​(javax.servlet.ServletRequest request,
                             javax.servlet.ServletResponse response,
                             javax.servlet.FilterChain chain)
                      throws IOException,
                             javax.servlet.ServletException
        Specified by:
        doFilter in interface javax.servlet.Filter
        Throws:
        IOException
        javax.servlet.ServletException