Fork me on GitHub
#reitit
<
2021-06-06
>
Fra00:06:16

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

ikitommi06:06:36

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).

dharrigan07:06:50

I have a little example of setting the CORS stuff here, could also be useful πŸ™‚

πŸ™Œ 3
Fra08:06:57

Thanks! πŸ™‚

Fra08:06:45

I've seen I need to place wrap-cors before the coercion middleware, otherwise it doesn't work :thinking_face: