Ring middleware for Cross-Origin Resource Sharing. Forked from r0man/ring-cores to improve disallowed response.
(require '[ring.middleware.cors :refer [wrap-cors]])
(def handler
(wrap-cors my-routes :access-control-allow-origin [#"http://example.com"]
:access-control-allow-methods [:get :put :post :delete]))
Copyright (C) 2013-2016 r0man, with portions copyright (c) 2015-2016 rwilson.
Distributed under the Eclipse Public License, the same as Clojure.