Documentation ¶
Index ¶
Constants ¶
View Source
const ( // the name of CSRF header HeaderName = "X-XSRF-TOKEN" // the name of the form field FormFieldName = "csrf_token" // the name of CSRF cookie CookieName = "csrf_token" // the name of the session cookie for angularjs SessionName = "XSRF-TOKEN" )
Variables ¶
This section is empty.
Functions ¶
func Cookie ¶
func Cookie() gin.HandlerFunc
generates two cookies: a long term csrf token for a user, and a masked session token to verify against
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.