Skip to content
Ring middleware for Cross-Origin Resource Sharing.
Clojure
Branch: master
Clone or download
Latest commit e762dec Dec 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Create FUNDING.yml Dec 19, 2019
src/ring/middleware Add Node.js and async support (#27) Jan 20, 2019
test/ring/middleware Add Node.js and async support (#27) Jan 20, 2019
.gitignore Change test layout. Apr 18, 2014
.travis.yml Use "lein" on Travis, not "lein2" (#23) Mar 31, 2018
README.org Fix typo in header Mar 29, 2016
project.clj Version 0.1.14-SNAPSHOT Jan 20, 2019

README.org

Ring CORS

https://img.shields.io/clojars/v/ring-cors.svg https://travis-ci.org/r0man/ring-cors.svg http://jarkeeper.com/r0man/ring-cors/status.svg https://jarkeeper.com/r0man/ring-cors/downloads.svg

Ring middleware for Cross-Origin Resource Sharing.

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

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

You can’t perform that action at this time.