From 1a13a178a1c3cef0d57f87df06e08f64cd70dc35 Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Mon, 26 Feb 2018 23:23:42 -0500 Subject: [PATCH] Add check origin config for production --- config/prod.exs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/config/prod.exs b/config/prod.exs index 6779f7b..6b2576c 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -1,13 +1,14 @@ use Mix.Config config :chess, ChessWeb.Endpoint, - http: [port: {:system, "PORT"}], - url: [host: "localhost", port: {:system, "PORT"}], cache_static_manifest: "priv/static/cache_manifest.json", - server: true, + check_origin: ["https://chess.danbarber.me"], + http: [port: {:system, "PORT"}], root: "./assets", - version: Application.spec(:myapp, :vsn), - secret_key_base: "${SECRET_KEY_BASE}" + secret_key_base: "${SECRET_KEY_BASE}", + server: true, + url: [host: "localhost", port: {:system, "PORT"}], + version: Application.spec(:myapp, :vsn) config :chess, Chess.Repo, adapter: Ecto.Adapters.Postgres,