Skip to content

Commit

Permalink
chore: remove Plug.Session usage from Endpoint (#2005)
Browse files Browse the repository at this point in the history
  • Loading branch information
sborrazas authored Nov 18, 2024
1 parent 27ed488 commit 6ec809f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/ae_mdw_web/endpoint.ex
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
defmodule AeMdwWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :ae_mdw

# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_ae_mdw_key",
signing_salt: "0cOe/zsp"
]

# You should set gzip to true if you are running phx.digest
# when deploying your static files in production.

Expand All @@ -36,7 +27,6 @@ defmodule AeMdwWeb.Endpoint do

plug Plug.MethodOverride
plug Plug.Head
plug Plug.Session, @session_options
plug CORSPlug
plug AeMdwWeb.Router

Expand Down

0 comments on commit 6ec809f

Please sign in to comment.