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 3828354 commit c6c4141Copy full SHA for c6c4141
coderd/httpmw/csrf.go
@@ -23,6 +23,9 @@ func CSRF(secureCookie bool) func(next http.Handler) http.Handler {
23
// All GET requests are exempt by default.
24
mw.ExemptPath("/api/v2/csp/reports")
25
26
+ // This should not be required?
27
+ mw.ExemptRegexp(regexp.MustCompile("/api/v2/users/first"))
28
+
29
// Agent authenticated routes
30
mw.ExemptRegexp(regexp.MustCompile("api/v2/workspaceagents/me/*"))
31
mw.ExemptRegexp(regexp.MustCompile("api/v2/workspaceagents/*"))
0 commit comments