Class CSPHandler

  • All Implemented Interfaces:
    io.vertx.core.Handler<RoutingContext>, SecurityPolicyHandler, Consumer<RoutingContext>

    public class CSPHandler
    extends Object
    implements SecurityPolicyHandler, io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>
    Content Security Policy (CSP) is an added layer of security that helps to detect and mitigate certain types of attacks, including Cross Site Scripting (XSS) and data injection attacks. These attacks are used for everything from data theft to site defacement to distribution of malware. CSP is designed to be fully backward compatible. Browsers that don't support it still work with servers that implement it, and vice-versa: browsers that don't support CSP simply ignore it, functioning as usual, defaulting to the standard same-origin policy for web content. If the site doesn't offer the CSP header, browsers likewise use the standard same-origin policy.

    NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.