Skip to content

Commit bf6d998

Browse files
committed
fix(config/runtime): pass origins wrapped in map
1 parent 127a11d commit bf6d998

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

config/runtime.exs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ config :epochtalk_server,
367367
Keyword.merge(base_endpoint_config, endpoint_config)
368368

369369
## Configure corsica
370-
corsica_config =
370+
corsica_config_origins =
371371
case config_env() do
372372
:prod ->
373373
get_env_or_raise_with_message.(
@@ -379,6 +379,9 @@ corsica_config =
379379
)
380380
_ -> "*"
381381
end
382+
corsica_config = %{
383+
origins: corsica_config_origins
384+
}
382385

383386
config :epochtalk_server, :corsica, corsica_config
384387

0 commit comments

Comments
 (0)