Skip to content

Commit b4ecdc5

Browse files
RichDom2185sayomaki
authored andcommitted
Use runtime env for CORS check (#1290)
1 parent 36cbaa7 commit b4ecdc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cadet_web/endpoint.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ defmodule CadetWeb.Endpoint do
44

55
plug(
66
Corsica,
7-
origins: Application.compile_env(:cadet, [CadetWeb.Endpoint, :cors_endpoints], "*"),
7+
origins: Application.get_env(:cadet, [CadetWeb.Endpoint, :cors_endpoints], "*"),
88
allow_methods: :all,
99
allow_headers: :all,
1010
expose_headers: ~w(Content-Length Content-Range),

0 commit comments

Comments
 (0)