mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
Added a bit more info on what csrf does
Thanks @rschamp for the suggestion!
This commit is contained in:
parent
112cad14e3
commit
5858bb94bb
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue