No description
Find a file
Yann Esposito (Yogsototh) 8be44836d3 a bit more headers
2014-09-26 19:29:42 +02:00
doc initial commit 2014-09-25 00:23:17 +02:00
src/fuck_cors a bit more headers 2014-09-26 19:29:42 +02:00
test/fuck_cors initial commit 2014-09-25 00:23:17 +02:00
.gitignore initial commit 2014-09-25 00:23:17 +02:00
LICENSE initial commit 2014-09-25 00:23:17 +02:00
project.clj a bit more headers 2014-09-26 19:29:42 +02:00
README.md better text 2014-09-26 16:00:31 +02:00

fuck-cors

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.

Why?

Some Men Just Want to Watch the World Burn

Usage

Add

[fuck-cors 0.1.0]

to your project.clj.

Then

(:require [fuck-cors.core :refer [wrap-open-cors])

And use wrap-open-cors as middleware.

Limitations

There is a bug with Safari. The only way to make it works is by using a very dirty trick:

http://anantgarg.com/2010/02/18/cross-domain-cookies-in-safari/

License

Copyright © 2014 Yann Esposito

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.