Skip to content

flatland/ring-cors

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# 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.

About

Ring middleware for Cross-Origin Resource Sharing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Clojure 100.0%