FIX
This commit is contained in:
parent
ef6e79828d
commit
82a0e3ad86
2 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
(defproject fuck-cors "0.1.4"
|
(defproject fuck-cors "0.1.5"
|
||||||
:description "Fuck CORS and open all to everyone"
|
:description "Fuck CORS and open all to everyone"
|
||||||
:url "http://github.com/yogsototh/fuck-cors"
|
:url "http://github.com/yogsototh/fuck-cors"
|
||||||
:license {:name "MIT"
|
:license {:name "MIT"
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
"Open your Origin Policy to Everybody, no limit"
|
"Open your Origin Policy to Everybody, no limit"
|
||||||
[handler]
|
[handler]
|
||||||
(fn [request]
|
(fn [request]
|
||||||
(let [origin (get-header "origin")
|
(let [origin (get-header request "origin")
|
||||||
referer (get-header "referer")
|
referer (get-header request "referer")
|
||||||
host (host-from-req request)
|
host (host-from-req request)
|
||||||
origins (if origin
|
origins (if origin
|
||||||
origin
|
origin
|
||||||
|
|
Loading…
Reference in a new issue