Fork me on GitHub
#ring
<
2017-10-24
>
weavejester15:10:24

@mfm That looks fine… Do you happen to have any other middleware wrapping your routes?

zlrth15:10:33

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.

weavejester15:10:03

Thanks for the update, @mfm. Glad you got it fixed.