We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2d7628 commit 420684fCopy full SHA for 420684f
coderd/httpmw/csrf.go
@@ -32,12 +32,6 @@ func CSRF(secureCookie bool) func(next http.Handler) http.Handler {
32
mw.ExemptRegexp(regexp.MustCompile("derp/*"))
33
34
mw.ExemptFunc(func(r *http.Request) bool {
35
- // Enable CSRF in November 2022 by deleting this "return true" line.
36
- // CSRF is not enforced to ensure backwards compatibility with older
37
- // cli versions.
38
- //nolint:revive
39
- return true
40
-
41
// CSRF only affects requests that automatically attach credentials via a cookie.
42
// If no cookie is present, then there is no risk of CSRF.
43
//nolint:govet
0 commit comments