Ring middleware for Cross-Origin Resource Sharing.
Clojure
Switch branches/tags
Nothing to show
Pull request Compare This branch is 8 commits ahead, 67 commits behind r0man:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/ring/middleware
test/ring/middleware/test
.gitignore
.travis.yml
README
project.clj

README

# ring-cors

Ring middleware for Cross-Origin Resource Sharing.

## Installation

Via Leiningen: [ring-cors "0.0.7-SNAPSHOT"]

## Usage

(def handler
  (-> routes
      (wrap-cors
       :access-control-allow-origin #\"http://example.com\"
       :access-control-allow-methods [:get :put :post :delete])))

## License

Copyright (C) 2011 Roman Scherer

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