Constructor
new BrowserCSRF(opts) → {undefined}
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object | string | options or token Properties
|
Returns:
- Type
- undefined
Methods
(static) deinject() → {undefined}
undo CSRF injection
Returns:
- Type
- undefined
(static) inject() → {undefined}
inject CSRF header into each XHR request & form submission
Returns:
- Type
- undefined