CSRF¶
Csrf service at /csrf¶
CSRF Token
GET¶
Accepted content types:- text/html
Return a plain string CSRF token.
- Returns:
str: A CSRF token.
Response: string
GET¶
Accepted content types:- application/json
- text/json
Return a JSON string containing a CSRF token, in a key called csrf_token.
- Returns:
str: A JSON string with a key csrf_token that references a CSRF token.
Response: json