c

play.filters.csp

DefaultCSPResultProcessor

class DefaultCSPResultProcessor extends CSPResultProcessor

This trait is used by CSPActionBuilder and CSPFilter to apply the CSPResult to a Play HTTP result as headers.

Appends as play.api.http.HeaderNames.CONTENT_SECURITY_POLICY or play.api.http.HeaderNames.CONTENT_SECURITY_POLICY_REPORT_ONLY, depending on config.reportOnly.

If cspResult.nonceHeader is defined then play.api.http.HeaderNames.X_CONTENT_SECURITY_POLICY_NONCE_HEADER is set as an additional header.

Source
CSPResultProcessor.scala
Linear Supertypes
CSPResultProcessor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DefaultCSPResultProcessor
  2. CSPResultProcessor
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DefaultCSPResultProcessor(cspProcessor: CSPProcessor)
    Annotations
    @Inject()

Value Members

  1. def apply(next: EssentialAction, request: RequestHeader): Accumulator[ByteString, Result]
    Definition Classes
    CSPResultProcessor