Class ContentSecurityPolicyConfigurer

    • Constructor Detail

    • Method Detail

      • isContentSecurityPolicyEnabled

        public boolean isContentSecurityPolicyEnabled()
        Whether or not content security policy behavior should be enabled.
        Returns:
        true if the behavior should be enabled, false otherwise
      • configure

        public void configure​(org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.ContentSecurityPolicyConfig config)
        If isContentSecurityPolicyEnabled(), this method will be invoked to configure the content security policy. This is typically invoked via HeadersConfigurer.contentSecurityPolicy(Customizer).
        Parameters:
        config - the content security policy configuration to customize
      • getCombinedDirectivesValue

        @Nullable
        protected String getCombinedDirectivesValue()