class DefaultCSPResultProcessor extends CSPResultProcessor
Ordering
- Alphabetic
- By Inheritance
Inherited
- DefaultCSPResultProcessor
- CSPResultProcessor
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new DefaultCSPResultProcessor(cspProcessor: CSPProcessor)
- Annotations
- @Inject()
Value Members
- def apply(next: EssentialAction, request: RequestHeader): Accumulator[ByteString, Result]
- Definition Classes
- → 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
orplay.api.http.HeaderNames.CONTENT_SECURITY_POLICY_REPORT_ONLY
, depending on config.reportOnly.If
cspResult.nonceHeader
is defined thenplay.api.http.HeaderNames.X_CONTENT_SECURITY_POLICY_NONCE_HEADER
is set as an additional header.