added some headers
This commit is contained in:
parent
5d13e07ee2
commit
71a6a38253
2 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
(defproject fuck-cors "0.1.0"
|
(defproject fuck-cors "0.1.2"
|
||||||
: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"
|
||||||
|
|
|
@ -23,10 +23,10 @@
|
||||||
referer
|
referer
|
||||||
host)
|
host)
|
||||||
headers {"Access-Control-Allow-Origin" origins
|
headers {"Access-Control-Allow-Origin" origins
|
||||||
"Access-Control-Allow-Headers" "Origin, X-Requested-With, Content-Type, Accept, Cache-Control"
|
"Access-Control-Allow-Headers" "Origin, X-Requested-With, Content-Type, Accept, Cache-Control, Authorization"
|
||||||
"Access-Control-Allow-Methods" "HEAD, GET, POST, PUT, DELETE, OPTIONS, TRACE"
|
"Access-Control-Allow-Methods" "HEAD, GET, POST, PUT, DELETE, OPTIONS, TRACE"
|
||||||
"Access-Control-Allow-Credentials" "true"
|
"Access-Control-Allow-Credentials" "true"
|
||||||
"Access-Control-Expose-Headers" "content-length"
|
"Access-Control-Expose-Headers" "content-length"
|
||||||
"Vary" "Accept-Encoding, Origin"}]
|
"Vary" "Accept-Encoding, Origin, Accept-Language"}]
|
||||||
(-> (handler request)
|
(-> (handler request)
|
||||||
(update-in [:headers] #(into % headers))))))
|
(update-in [:headers] #(into % headers))))))
|
||||||
|
|
Loading…
Reference in a new issue