Skip to content

Commit

Permalink
word
Browse files Browse the repository at this point in the history
  • Loading branch information
tanfarming committed Nov 22, 2023
1 parent 592fb62 commit c219819
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions lib/ret_web/controllers/page_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -687,14 +687,15 @@ defmodule RetWeb.PageController do
[cors_scheme, cors_port, cors_host] =
[:scheme, :port, :host] |> Enum.map(&Keyword.get(cors_proxy_url, &1))


IO.inspect(System.get_env("TURKEY_MODE"))
IO.inspect(cors_host)
IO.inspect(conn.host)
IO.inspect(cors_scheme)
IO.inspect(get_req_header(conn, "x-forwarded-proto"))

is_cors_proxy_url =
if System.get_env("TURKEY_MODE") do

IO.inspect(cors_host)
IO.inspect(conn.host)
IO.inspect(cors_scheme)
IO.inspect(get_req_header(conn, "x-forwarded-proto"))

if System.get_env("TURKEY_MODE") do
cors_host == conn.host &&
cors_scheme == get_req_header(conn, "x-forwarded-proto") |> Enum.at(0)
else
Expand Down

0 comments on commit c219819

Please sign in to comment.