Csrf class

CSRF double-submit configuration for cookie transport.

Constructors

Csrf({String header = 'X-SP-CSRF', String cookie = 'sp_csrf'})
const

Properties

Cookie name readable by client JavaScript (default sp_csrf).
final
hashCode → int
The hash code for this object.
no setterinherited
Header name sent on requests (default X-SP-CSRF).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited