Documentation ¶
Index ¶
Constants ¶
View Source
const ( // HeaderName is the name of CSRF header HeaderName = "X-XSRF-TOKEN" // FormFieldName is the name of the form field FormFieldName = "csrf_token" // CookieName is the name of CSRF cookie CookieName = "csrf_token" // SessionCookieName the name of the session cookie for angularjs SessionCookieName = "XSRF-TOKEN" )
Variables ¶
This section is empty.
Functions ¶
func Cookie ¶
func Cookie() gin.HandlerFunc
Cookie 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.