クラス ServerHttpSecurity.HeaderSpec.ContentSecurityPolicySpec

    • メソッドの詳細

      • reportOnly

        public ServerHttpSecurity.HeaderSpec reportOnly​(boolean reportOnly)
        レスポンスに Content-Security-Policy-Report-Only ヘッダーを含めるかどうか。それ以外の場合、デフォルトは Content-Security-Policy ヘッダーです。
        パラメーター:
        reportOnly - ポリシー違反のみを報告するかどうか
        戻り値:
        ServerHttpSecurity.HeaderSpec の構成を続行するには
      • policyDirectives

        public ServerHttpSecurity.HeaderSpec policyDirectives​(java.lang.String policyDirectives)
        レスポンスヘッダーで使用されるセキュリティポリシーディレクティブを設定します。
        パラメーター:
        policyDirectives - セキュリティポリシーディレクティブ
        戻り値:
        ServerHttpSecurity.HeaderSpec の構成を続行するには