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?