Interface ResponseHeadersPolicyContentSecurityPolicy.Builder

  • Method Details

    • override

      A Boolean that determines whether CloudFront overrides the Content-Security-Policy HTTP response header received from the origin with the one specified in this response headers policy.

      Parameters:
      override - A Boolean that determines whether CloudFront overrides the Content-Security-Policy HTTP response header received from the origin with the one specified in this response headers policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contentSecurityPolicy

      ResponseHeadersPolicyContentSecurityPolicy.Builder contentSecurityPolicy(String contentSecurityPolicy)

      The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header.

      Parameters:
      contentSecurityPolicy - The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header.
      Returns:
      Returns a reference to this object so that method calls can be chained together.