A Clojure library designed to fuck CORS and open your API completely. So all cross domain HTTP calls should works. It should works with cookies too.
In which case should you use this library:
Some Men Just Want to Watch the World Burn
Add
to your project.clj
.
Then
(:require [fuck-cors.core :refer [wrap-open-cors])
And use wrap-open-cors
as middleware.
Now you can make AJAX call from any website.
Of course if you want more control over which website are able to call your API, you should not use this middleware.
Copyright © 2014 Yann Esposito
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.
Can you improve this documentation? These fine people already did:
Yann Esposito (Yogsototh) & Yann EspositoEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close