Take a look at this repo: https://github.com/open-company/open-company-api
We're using Liberator with: [jumblerg/ring.middleware.cors "1.0.1"]
The middleware handles the CORs portion of the response:
And then we handle the methods portion of the response with standard
On Friday, October 14, 2016 at 12:21:34 PM UTC-4, Kenny Liu wrote:
> Yep, I tried a non-liberator POST, and it went through perfectly. So right
> now it seems like liberator is doing something wonky to my
> On Friday, October 14, 2016 at 8:22:29 PM UTC+8, 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:
>> (-> (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.