Skip to content

Commit f8a4d24

Browse files
committed
Fix misleading comment in double-submit cookie example
1 parent ab85b5f commit f8a4d24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Below is an example in pseudo-code that demonstrates validation of the CSRF toke
114114

115115
```code
116116
// Get the CSRF token from the request
117-
csrfToken = request.getParameter("csrf_token") // From form field, cookie, or header
117+
csrfToken = request.getParameter("csrf_token") // From header or form field (NOT cookie)
118118
119119
// Split the token to get the randomValue
120120
const tokenParts = csrfToken.split(".");

0 commit comments

Comments
 (0)