Skip to content

Commit

Permalink
Fix CORS for production websockets
Browse files Browse the repository at this point in the history
  • Loading branch information
Betree committed Nov 1, 2018
1 parent 6945766 commit 35404bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/captain_fact/lib/runtime_configuration.ex
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ defmodule CaptainFact.RuntimeConfiguration do
if new_cors == "*" do
put_in_env(:captain_fact, [CaptainFactWeb.Endpoint, :check_origin], false)
else
put_in_env(:captain_fact, [CaptainFactWeb.Endpoint, :check_origin], [new_cors])
put_in_env(:captain_fact, [CaptainFactWeb.Endpoint, :check_origin], new_cors)
end
end

Expand Down

0 comments on commit 35404bf

Please sign in to comment.