loliveira / ring-cors

Ring middleware for Cross-Origin Resource Sharing.

Home Page:http://github.com/r0man/ring-cors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

# ring-cors

Ring middleware for Cross-Origin Resource Sharing.

## Installation

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

## Usage

(def handler
  (-> my-routes
      (wrap-cors
       :access-control-allow-origin #"http://example.com")))

## License

Copyright (C) 2011 Roman Scherer

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

About

Ring middleware for Cross-Origin Resource Sharing.

http://github.com/r0man/ring-cors


Languages

Language:Clojure 100.0%