Skip to content

Commit

Permalink
Update lib/phoenix/endpoint/supervisor.ex
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim authored Oct 31, 2024
1 parent 7018509 commit 0e2c1cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/phoenix/endpoint/supervisor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,10 @@ defmodule Phoenix.Endpoint.Supervisor do
end

defp check_origin_or_csrf_checked!(endpoint_conf, socket_opts) do
check_origin = endpoint_conf[:check_origin]

for {transport, transport_opts} <- socket_opts, is_list(transport_opts) do
check_origin =
Keyword.get(transport_opts, :check_origin, endpoint_conf[:check_origin])
check_origin = Keyword.get(transport_opts, :check_origin, check_origin)

check_csrf = transport_opts[:check_csrf]

Expand Down

0 comments on commit 0e2c1cb

Please sign in to comment.