class SecurityHeadersFilter extends EssentialFilter
The case class that implements the filter. This gives you the most control, but you may want to use the apply() method on the companion singleton for convenience.
- Annotations
- @Singleton()
- Source
- SecurityHeadersFilter.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- SecurityHeadersFilter
- EssentialFilter
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new SecurityHeadersFilter(config: SecurityHeadersConfig)
- Annotations
- @Inject()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(next: EssentialAction): EssentialAction
Applies the filter to an action, appending the headers to the result so it shows in the HTTP response.
Applies the filter to an action, appending the headers to the result so it shows in the HTTP response.
- Definition Classes
- SecurityHeadersFilter → EssentialFilter
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asJava: EssentialFilter
- Definition Classes
- EssentialFilter
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def headers(request: RequestHeader, result: Result): Seq[(String, String)]
Returns the security headers for a request.
Returns the security headers for a request. All security headers applied to all requests by default. Omit any headers explicitly provided in the result object, provided play.filters.headers.allowActionSpecificHeaders is true. Override this method to alter that behavior.
- Attributes
- protected
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()