CsrfTokenSupport

org.scalatra.CsrfTokenSupport
See theCsrfTokenSupport companion object

Provides cross-site request forgery protection.

Adds a before filter. If a request is determined to be forged, the handleForgery() hook is invoked. Otherwise, a token for the next request is prepared with prepareCsrfToken.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def csrfKey: String

The key used to store the token on the session, as well as the parameter of the request.

The key used to store the token on the session, as well as the parameter of the request.

Attributes