You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Yann Esposito (Yogsototh) 1b6f1f1bf6
upgrade travis.yaml
4 years ago
doc initial commit 7 years ago
src/fuck_cors added aggressive preflight middleware 7 years ago
test/fuck_cors fix README and added a simple test 6 years ago
.gitignore initial commit 7 years ago
.travis.yml upgrade travis.yaml 4 years ago
LICENSE initial commit 7 years ago added travis and clojars badges 6 years ago
project.clj updated dependencies 4 years ago

Build Status


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:

  1. You don't have time to think and want something that just works.
  2. You don't mind much about security.
  3. You hate CORS but want to be able to make Ajax call Cross website.


Some Men Just Want to Watch the World Burn



Clojars Project

to your project.clj.


(: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.