Skip to content

rwilson/ring-cors

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ring CORS

https://img.shields.io/clojars/v/rwilson/ring-cors.svg

Ring middleware for Cross-Origin Resource Sharing. Forked from r0man/ring-cores to improve disallowed response.

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, with portions copyright (c) 2015-2016 rwilson.

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

About

Ring middleware for Cross-Origin Resource Sharing.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Clojure 100.0%