This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-03
Channels
- # beginners (48)
- # boot (26)
- # cider (7)
- # cljsrn (1)
- # clojure (137)
- # clojure-nl (1)
- # clojure-spec (5)
- # clojure-uk (18)
- # clojurescript (26)
- # cursive (8)
- # datascript (4)
- # datomic (4)
- # defnpodcast (11)
- # docker (1)
- # duct (7)
- # figwheel (4)
- # fulcro (7)
- # off-topic (7)
- # re-frame (46)
- # reagent (40)
- # reitit (3)
- # shadow-cljs (4)
is there an easy way of modifying the configuration of the default :duct.middleware.web/defaults
? checking my config via (pprint config)
i can see that is used in :middleware
vector of :duct.core/handler
i would like to use keep using it with a minor change ... i don't want/need the :security {:anti-forgery true}
@iperdomo Yes, you can just add that key to the configuration
e.g.
:duct.middleware.web/defaults {:security {:anti-forgery false}}
The web module merges its changes in, but should give priority to any existing values in your configuration.
@weavejester many thanks!