This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-01-16
Channels
- # ai (3)
- # babashka (3)
- # beginners (252)
- # calva (56)
- # clj-kondo (6)
- # cljfx (7)
- # cljs-dev (2)
- # cljsrn (2)
- # clojure (72)
- # clojure-france (12)
- # clojurescript (13)
- # conjure (60)
- # garden (18)
- # hoplon (16)
- # jobs (1)
- # leiningen (3)
- # off-topic (18)
- # pathom (5)
- # practicalli (1)
- # reagent (4)
- # reitit (1)
- # remote-jobs (1)
- # reveal (3)
- # shadow-cljs (1)
- # spacemacs (7)
- # xtdb (39)
I’m in the process of moving an application from Compojure to Reitit. The application that I’m converting has been using ring.middleware.defaults/wrap-defaults
and can see that some of its functionality is covered by Reitit middleware (e.g. reitit.ring.middleware.parameters/parameters-middleware
instead of ring.middleware.params/wrap-params
). But significant other functionality (e.g. XSS protection, anti-forgery, SSL redirect, …) isn’t.
What’s best practice here? Is there a “nice” way to use wrap-defaults
and Reitit together?