Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ugarov Ruslan Denisovich committed Nov 5, 2024
1 parent ac76885 commit 02cca3d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions internal/app/secur/csrf/token/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ func GenerateToken() (string, error) {
// SetCSRFTokenCookie сохраняет CSRF-токен в cookie
func SetCSRFTokenCookie(w http.ResponseWriter, token string) {
http.SetCookie(w, &http.Cookie{
Name: "csrf_token",
Value: token,
Path: "/",
HttpOnly: true,
Secure: true, // Для прода
Name: "csrf_token",
Value: token,
Path: "/",
Secure: true, // Для прода
})
}

0 comments on commit 02cca3d

Please sign in to comment.