Allow to pass CORS configuration
lnmunhoz opened this issue · 2 comments
lnmunhoz commented
Allow configuration of allowed origins by environment variables.
(def service-map
{::http/routes i/routes
::http/allowed-origins {:allowed-origins
["https://decimals.stoplight.io", <-- This should come from config
"http://localhost:3000"] <-- I had to add for development :)
:methods "GET,POST"}
andriosrobert commented
lnmunhoz commented
@andriosr approved! 👍