Ring middleware for Cross-Origin Resource Sharing.
(require '[ring.middleware.cors :refer [wrap-cors]])
(def handler
(wrap-cors my-routes :access-control-allow-origin [#"https://example.com"]
:access-control-allow-methods [:get :put :post :delete]))
Copyright (C) 2013-2016 r0man
Distributed under the Eclipse Public License, the same as Clojure.