Re: Liberator with ring-cors

2016-10-15 Thread Sean Johnson
Kenny, 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"] Works fine... The middleware handles the CORs portion of the response: https://github.com/open-company/open-company-api/blob/mainline/src/open_c

Re: Liberator with ring-cors

2016-10-14 Thread Kenny Liu
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 requests/responses. 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 b

Re: Liberator with ring-cors

2016-10-14 Thread Kenny Liu
Thanks for the tip, yep same issue. I'll see if I can get it working with a non-liberator POST. On Friday, October 14, 2016 at 11:22:51 PM UTC+8, Francis Avila wrote: > > You could try https://github.com/jumblerg/ring.middleware.cors as your > cors lib instead. This would at least help you isola

Re: Liberator with ring-cors

2016-10-14 Thread Francis Avila
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 i