@mfm That looks fine… Do you happen to have any other middleware wrapping your routes?
i got it to work hours later, then fell asleep. i think i understand what happened. let me know if i’m off-base.
i have what i posted above, but, per the project created by the template lein new luminus my-app
, i also have in middleware.clj
(defn wrap-base [handler]
(-> ((:middleware defaults) handler)
...
(wrap-defaults site-defaults)
wrap-context
wrap-internal-error))
where site-defaults
has under :security
:anti-forgery
set to true
.
so, yes @weavejester, if i understand correctly, i had csrf protection set in two places, middleware.clj
, in my app-routes
with wrap-csrf
.Thanks for the update, @mfm. Glad you got it fixed.
: )