You could try https://github.com/jumblerg/ring.middleware.cors as your cors
lib instead. This would at least help you isolate if it is a liberator
issue or not.
On Friday, October 14, 2016 at 7:22:29 AM UTC-5, Kenny Liu wrote:
> Anyone know if this all works out of the box? Preflight OPTIONS is 200 but
> the GET/POST fails. My attempt to get it working:
> (def app
> "Order must be reversed. See: http://stackoverflow.com/q/19455801/894091
> (-> (bidi/make-handler v1-routes)
> (wrap-defaults api-defaults)
> (wrap-cors :access-control-allow-origin [#".*"]
> :access-control-allow-headers ["Host"
> :access-control-allow-methods [:get :put :post :delete
> Based on https://github.com/clojure-liberator/liberator/issues/76, I
> suspect it might be liberator messing with something. I'm pretty stumped.
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to email@example.com
Note that posts from new members are moderated - please be patient with your
To unsubscribe from this group, send email to
For more options, visit this group at
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.