A CORS proxy written in a few lines of Clojure.
Go to file
Yann Esposito (Yogsototh) 2a6dcde058
Support a homepage :)
2024-03-07 17:25:42 +01:00
doc Initial release 2024-03-05 17:55:29 +01:00
src/fuck_cors_app Support a homepage :) 2024-03-07 17:25:42 +01:00
test/fuck_cors_app Initial release 2024-03-05 17:55:29 +01:00
.gitignore Initial release 2024-03-05 17:55:29 +01:00
LICENSE Initial release 2024-03-05 17:55:29 +01:00
README.md Minor update 2024-03-05 18:00:23 +01:00
project.clj Support a homepage :) 2024-03-07 17:25:42 +01:00



A Clojure Application to self host a CORS proxy.

As a webdev, or even for most usage, CORS are not a very protective measure. Here is a CORS proxy implemented in very few lines of clojure.


lein run

Then in your js code

document.fetch(url) // => FAIL WITH CORS

document.fetch('' + encodeURIComponent(url)) // => WORKS

As simple as that.


Copyright © 2024 Yann Esposito

This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0.

This Source Code may also be made available under the following Secondary Licenses when the conditions for such availability set forth in the Eclipse Public License, v. 2.0 are satisfied: GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version, with the GNU Classpath Exception which is available at https://www.gnu.org/software/classpath/license.html.