hoophq / sequence

Immutable, scalable, and easy to use ledger service.
Apache License 2.0
492 stars 31 forks source link

Allow to pass CORS configuration #10

Closed lnmunhoz closed 4 years ago

lnmunhoz commented 4 years ago

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 4 years ago

@lnmunhoz please, check if #13 solves it

lnmunhoz commented 4 years ago

@andriosr approved! 👍