Skip to content

Commit

Permalink
debug(SecureCookie): Working on setting the secure cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
kotva006 committed May 3, 2024
1 parent 5d956ea commit db8ff6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/dotcom_web/router.ex
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
defmodule DotcomWeb.Router do
@moduledoc false
require Logger

use DotcomWeb, :router
use Plug.ErrorHandler
Expand All @@ -9,6 +10,7 @@ defmodule DotcomWeb.Router do

pipeline :secure do
if force_ssl = Application.compile_env(:dotcom, :secure_pipeline)[:force_ssl] do
Logger.warning("Force SSL is Called")
plug(Plug.SSL, force_ssl)
end
end
Expand Down

0 comments on commit db8ff6a

Please sign in to comment.