Skip to content

Commit 738ba2a

Browse files
committed
Update prod security settings
I originally cargo culted this file. The recently added :conn option is a bit simpler, and I'm cargo culting rewrite_on because I typically see all 3 of these options specified in the documentation I've found.
1 parent b4f2965 commit 738ba2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/prod.exs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import Config
88
config :mjw, MjwWeb.Endpoint,
99
url: [host: "mahjongwind.com", port: 443, scheme: "https"],
1010
cache_static_manifest: "priv/static/cache_manifest.json",
11-
check_origin: ["//mahjongwind.com"],
11+
check_origin: :conn,
1212
force_ssl: [
1313
host: nil,
14-
rewrite_on: [:x_forwarded_port, :x_forwarded_proto],
14+
rewrite_on: [:x_forwarded_host, :x_forwarded_port, :x_forwarded_proto],
1515
hsts: true
1616
]
1717

0 commit comments

Comments
 (0)