c

play.filters.csp

CSPNonceConfig

case class CSPNonceConfig(enabled: Boolean = true, pattern: String = CPSNonceConfig.DEFAULT_CSP_NONCE_PATTERN, header: Boolean = true) extends Product with Serializable

CSP Nonce Configuration.

enabled

if true, a nonce is generated in processing

pattern

the pattern in directives to substitute with nonce, DEFAULT_CSP_NONCE_PATTERN by default.

header

if true, renders HeaderNames.X_CONTENT_SECURITY_POLICY_NONCE_HEADER

Source
CSPConfig.scala
Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CSPNonceConfig
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new CSPNonceConfig()

    Java constructor

  2. new CSPNonceConfig(enabled: Boolean = true, pattern: String = CPSNonceConfig.DEFAULT_CSP_NONCE_PATTERN, header: Boolean = true)

    enabled

    if true, a nonce is generated in processing

    pattern

    the pattern in directives to substitute with nonce, DEFAULT_CSP_NONCE_PATTERN by default.

    header

    if true, renders HeaderNames.X_CONTENT_SECURITY_POLICY_NONCE_HEADER

Value Members

  1. val enabled: Boolean
  2. val header: Boolean
  3. val pattern: String
  4. def productElementNames: Iterator[String]
    Definition Classes
    Product
  5. def withEnabled(enabled: Boolean): CSPNonceConfig
  6. def withHeader(header: Boolean): CSPNonceConfig
  7. def withPattern(pattern: String): CSPNonceConfig