Skip to content

yogsototh/fuck-cors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project has two homes. It is ok to work in github, still, for a better decentralized web please consider contributing (issues, PR, etc...) throught:

https://gitlab.esy.fun/yogsototh/fuck-cors


Build Status

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

Clojars Project

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.

License

Copyright © 2014 Yann Esposito

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

About

Open CORS to everyone. Because, fuck security.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published