Added a bit more info on what csrf does

Thanks @rschamp for the suggestion!
This commit is contained in:
Matthew Taylor 2016-01-19 16:04:08 -05:00
parent 112cad14e3
commit 5858bb94bb

View file

@ -9,7 +9,8 @@ var CookieMixinFactory = require('./cookieMixinFactory.jsx');
/**
* Component mixin that constructs requests to the scratch api.
* Custom arguments:
* - useCsrf [boolean] handles csrf construction for POST requests
* - useCsrf [boolean] handles unique csrf token retrieval for POST requests. This prevents
* CSRF forgeries (see: https://www.squarefree.com/securitytips/web-developers.html#CSRF)
*
* It also takes in other arguments specified in the xhr library spec.
*/