Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ring middleware for Cross-Origin Resource Sharing.
branch: master

This branch is 8 commits ahead, 47 commits behind r0man:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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.
Something went wrong with that request. Please try again.