Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update Reference.md
  • Loading branch information
geek committed Feb 28, 2013
commit 47649d04f6d8ffb201c24f975a4c6e588db11290
8 changes: 8 additions & 0 deletions docs/Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1710,6 +1710,14 @@ http.route({

In order to help mitigate CSRF threats there is a plugin for **hapi** called [crumb](https://npmjs.org/package/crumb) that can be installed. Install **crumb** by either running `npm install crumb` in your sites working directory or add _'crumb'_ to the dependencies section of the _'package.json'_ file and run `npm install`.

The following plugin options are available for **crumb**
- `name` - name of cookie to store crumb. Default is 'crumb'.
- `size` - number of characters to randomly generate for crumb value. Default is '43'.
- `autoGenerate` - bool value to indicate if the crumb should be created automatically. Default is 'true'.
- `addToViewContext` - bool value to indicate if crumb is added to the context of a view before the context is bound (making it accessible in a template). Default is 'true'.
- `cookieOptions`
- `path` - cookie path to restrict access to crumb cookie. Default is '/'.


## Documentation Generator

Expand Down