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 97ac613 commit 2d7aba1Copy full SHA for 2d7aba1
coderd/httpmw/csrf.go
@@ -26,8 +26,6 @@ func CSRF(secureCookie bool) func(next http.Handler) http.Handler {
26
// If a user is using header authentication and cookie auth, but the values
27
// do not match, the cookie value takes priority.
28
// At the very least, return a more helpful error to the user.
29
- // This happens frequently on the hosted swagger docs. There
30
- // is no easy way to disable cookies from
31
http.Error(w,
32
fmt.Sprintf("CSRF error encountered. Authentication via %q cookie and %q header detected, but the values do not match. "+
33
"To resolve this issue ensure the values used in both match, or only use one of the authentication methods. "+
0 commit comments