Skip to content

r0man/ring-cors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Ring middleware for Cross-Origin Resource Sharing.

Resources

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published