diff --git a/core/kamux/csrf/csrf.go b/core/kamux/csrf/csrf.go index 5da0017..ecb7cfb 100644 --- a/core/kamux/csrf/csrf.go +++ b/core/kamux/csrf/csrf.go @@ -83,7 +83,7 @@ var CSRF = func(handler http.Handler) http.Handler { case "POST","PATCH","PUT","UPDATE","DELETE": token := r.Header.Get("X-CSRF-Token") tok,ok := Csrf_tokens.Get(token) - if !ok || token == "" || tok.Used || tok.Retry > CSRF_TIMEOUT_RETRY || time.Since(tok.Created) > CSRF_CLEAN_EVERY || r.UserAgent() != tok.Remote { + if !ok || token == "" || tok.Used || tok.Retry > CSRF_TIMEOUT_RETRY || time.Since(tok.Created) > CSRF_CLEAN_EVERY { eventbus.Publish("csrf-clean",tok.Value) w.WriteHeader(http.StatusBadRequest) json.NewEncoder(w).Encode(map[string]any{ diff --git a/version.txt b/version.txt index 96462aa..ef3b2e2 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.0.63 \ No newline at end of file +1.0.64 \ No newline at end of file