summaryrefslogtreecommitdiff
path: root/middleware/auth.go
diff options
context:
space:
mode:
authorhaturatu <taro@eyes4you.org>2025-10-13 07:01:46 +0900
committerhaturatu <taro@eyes4you.org>2025-10-13 07:01:46 +0900
commitaf646a893e3b66b2b868d2d0f4216362477a4fba (patch)
tree4be49ae0140cb5b9849831333cbdccb0fdd279cc /middleware/auth.go
parent18991704b375db4e8d22785bb47f3e2e12cd016f (diff)
support: xsrf
Diffstat (limited to 'middleware/auth.go')
-rw-r--r--middleware/auth.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/middleware/auth.go b/middleware/auth.go
index 5025f32..3d6484f 100644
--- a/middleware/auth.go
+++ b/middleware/auth.go
@@ -157,7 +157,7 @@ func AdminMiddleware(next http.Handler) http.Handler {
}
// HandleOptions is a middleware that handles pre-flight OPTIONS requests.
-// This should be placed before the CSRF middleware.
+// This should be placed before the XSRF middleware.
func HandleOptions(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
if r.Method == http.MethodOptions {