Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 783 Bytes

README.org

File metadata and controls

21 lines (13 loc) · 783 Bytes

Ring CORS

https://img.shields.io/clojars/v/rwilson/ring-cors.svg

Ring middleware for Cross-Origin Resource Sharing. Forked from r0man/ring-cores to improve disallowed response.

Usage

(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]))

License

Copyright (C) 2013-2016 r0man, with portions copyright (c) 2015-2016 rwilson.

Distributed under the Eclipse Public License, the same as Clojure.