Fork me on GitHub
#duct
<
2018-02-03
>
blackawa03:02:07

@snichme Thank you for advice!! 🙏

iperdomo16:02:23

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

iperdomo16:02:18

i would like to use keep using it with a minor change ... i don't want/need the :security {:anti-forgery true}

weavejester17:02:30

@iperdomo Yes, you can just add that key to the configuration

weavejester17:02:52

e.g.

:duct.middleware.web/defaults {:security {:anti-forgery false}}

weavejester17:02:35

The web module merges its changes in, but should give priority to any existing values in your configuration.