Closed popoppo closed 8 years ago
Hi @r0man , thanks for your great work.
The other day I was stuck for hours with following code.
(wrap-cors handler ... :access-control-allow-headers ["Accept" "Content-Type"])
I looked over cors.clj, and figured out I should have had
cors.clj
:access-control-allow-headers [:accept :content-type])
Then let me suggest allowing users to use string in :access-control-allow-headers. I believe it'd be helpful for coming users.
Thank you for your work and time.
@popoppo Could you please add some tests for this enhancement?
I added some basic tests. Could you check that if you have time?
@popoppo Released as 0.1.8. Thanks!
0.1.8
Hi @r0man , thanks for your great work.
The other day I was stuck for hours with following code.
I looked over
cors.clj
, and figured out I should have hadThen let me suggest allowing users to use string in :access-control-allow-headers. I believe it'd be helpful for coming users.
Thank you for your work and time.