hoophq/sequence

Allow to pass CORS configuration

lnmunhoz opened this issue · 2 comments

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"}

@lnmunhoz please, check if #13 solves it

@andriosr approved! 👍