Skip to content

Commit

Permalink
chore: added check_origin: true to endpoint config
Browse files Browse the repository at this point in the history
  • Loading branch information
endoooo committed Feb 1, 2024
1 parent 7caa83c commit 6ff487a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ import Config
if System.get_env("PHX_SERVER") do
config :lanttern, LantternWeb.Endpoint,
server: true,
url: [host: System.get_env("URL_HOST")]
url: [host: System.get_env("URL_HOST")],
check_origin: true
end

if config_env() == :prod do
Expand Down

0 comments on commit 6ff487a

Please sign in to comment.