Class ContentSecurityPolicySettings

java.lang.Object
org.apache.wicket.csp.ContentSecurityPolicySettings

Build the CSP configuration like this:
 
  myApplication.getCspSettings().blocking().clear()
      .add(CSPDirective.DEFAULT_SRC, CSPDirectiveSrcValue.NONE)
      .add(CSPDirective.SCRIPT_SRC, CSPDirectiveSrcValue.SELF)
      .add(CSPDirective.IMG_SRC, CSPDirectiveSrcValue.SELF)
      .add(CSPDirective.FONT_SRC, CSPDirectiveSrcValue.SELF));

  myApplication.getCspSettings().reporting().strict();
 	
 
See CSPHeaderConfiguration for more details on specifying the configuration.
Author:
Sven Haster, Emond Papegaaij
See Also: