File tree 1 file changed +7
-2
lines changed 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,17 @@ func CSRF(secureCookie bool) func(next http.Handler) http.Handler {
23
23
// All GET requests are exempt by default.
24
24
mw .ExemptPath ("/api/v2/csp/reports" )
25
25
26
- // Top level agent routes.
27
- mw .ExemptRegexp (regexp .MustCompile ("api/v2/workspaceagents/[^/]*$" ))
28
26
// Agent authenticated routes
29
27
mw .ExemptRegexp (regexp .MustCompile ("api/v2/workspaceagents/me/*" ))
28
+ mw .ExemptRegexp (regexp .MustCompile ("api/v2/workspaceagents/*" ))
29
+ // Workspace Proxy routes
30
+ mw .ExemptRegexp (regexp .MustCompile ("api/v2/workspaceproxies/me/*" ))
30
31
// Derp routes
31
32
mw .ExemptRegexp (regexp .MustCompile ("derp/*" ))
33
+ // Scim
34
+ mw .ExemptRegexp (regexp .MustCompile ("api/v2/scim/*" ))
35
+ // Provisioner daemon routes
36
+ mw .ExemptRegexp (regexp .MustCompile ("/organizations/[^/]+/provisionerdaemons/*" ))
32
37
33
38
mw .ExemptFunc (func (r * http.Request ) bool {
34
39
// CSRF only affects requests that automatically attach credentials via a cookie.
You can’t perform that action at this time.
0 commit comments