Skip to content

Commit

Permalink
feat(set-cookie): httponly=false
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed May 2, 2024
1 parent 969db99 commit 9d71f2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/controller/accapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func (ar *AccountRouter) LoginAccount(c *gin.Context) {
Domain: domain,
Secure: true,
SameSite: http.SameSiteNoneMode,
HttpOnly: true,
HttpOnly: false,
MaxAge: 3600,
})
} else {
Expand All @@ -101,7 +101,7 @@ func (ar *AccountRouter) LoginAccount(c *gin.Context) {
Domain: domain,
Secure: true,
SameSite: http.SameSiteStrictMode,
HttpOnly: true,
HttpOnly: false,
MaxAge: 3600,
})
}
Expand Down

0 comments on commit 9d71f2a

Please sign in to comment.