Documentation ¶
Overview ¶
Package xsrf provides simple routines for creating and retrieving XSRF tokens with the Angular framework.
Index ¶
Constants ¶
View Source
const CookieName = "XSRF-TOKEN"
CookieName is the name of the cookie angular checks to determine whether it should send an "X-XSRF-TOKEN" header.
Variables ¶
This section is empty.
Functions ¶
func FromHeader ¶
FromHeader fetches the Token from the X-XSRF-TOKEN header, if it exists.
func FromRequest ¶
FromRequest fetches the Token from the X-XSRF-TOKEN header, if it exists.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.