hi ! I'm following this example to add the allow origin header with a reitit middleware function, it seems not to work for meΒ https://github.com/metosin/reitit/issues/143#issuecomment-647191697 am I doing anything wrong? Thanks
both CORS and session handling are bit awkward as there isn't prebindled mw for those and the existing libs assume middleware-first pattern (reitit is route-first).
I have a little example of setting the CORS stuff here, could also be useful π
https://github.com/dharrigan/startrek/blob/master/src/startrek/base/api/router.clj#L48
Thanks! π
I've seen I need to place wrap-cors before the coercion middleware, otherwise it doesn't work :thinking_face: