This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-10-24
Channels
- # aws (7)
- # aws-lambda (3)
- # beginners (65)
- # boot (43)
- # cider (7)
- # cljs-dev (12)
- # cljsrn (15)
- # clojure (284)
- # clojure-austin (32)
- # clojure-brasil (4)
- # clojure-dusseldorf (4)
- # clojure-germany (1)
- # clojure-italy (40)
- # clojure-spec (21)
- # clojure-uk (69)
- # clojurescript (97)
- # core-async (11)
- # cursive (19)
- # data-science (1)
- # datascript (6)
- # datomic (30)
- # dirac (2)
- # emacs (4)
- # events (2)
- # fulcro (76)
- # graphql (38)
- # juxt (1)
- # lein-figwheel (1)
- # leiningen (6)
- # luminus (4)
- # lumo (13)
- # mount (4)
- # off-topic (24)
- # om (28)
- # onyx (32)
- # other-languages (1)
- # parinfer (40)
- # pedestal (1)
- # portkey (47)
- # re-frame (21)
- # reagent (4)
- # ring (4)
- # ring-swagger (3)
- # rum (1)
- # shadow-cljs (115)
- # spacemacs (5)
- # sql (14)
- # unrepl (1)
- # yada (3)
@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.