📚 Doc: Update comment for session cookie verification in CSRF proxy middleware test

pull/3390/head
JIeJaitt 2025-04-02 17:33:10 +08:00
parent 598b9ff12d
commit f202f4d362
1 changed files with 1 additions and 1 deletions

View File

@ -1627,7 +1627,7 @@ func Test_CSRF_With_Proxy_Middleware(t *testing.T) {
}
require.True(t, foundCSRFCookie, "CSRF cookie '%s' not found in response headers after proxy", csrfCookieName)
// Optional: Verify session cookie is also present
// Additionally: Verify session cookie is also present
foundSessionCookie := false
sessionCookieName := "session_id" // Default name for session.NewWithStore() unless configured otherwise
for _, cookie := range resp.Cookies() {