mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
Test a different strategy to check for ws origin
This commit is contained in:
@@ -39,7 +39,6 @@ defmodule Web.Endpoint do
|
||||
|
||||
socket "/live", Phoenix.LiveView.Socket,
|
||||
websocket: [
|
||||
check_origin: :conn,
|
||||
connect_info: [
|
||||
:trace_context_headers,
|
||||
:user_agent,
|
||||
|
||||
@@ -82,6 +82,10 @@ if config_env() == :prod do
|
||||
path: external_url_path
|
||||
],
|
||||
secret_key_base: compile_config!(:secret_key_base),
|
||||
check_origin: [
|
||||
"#{external_url_scheme}://#{external_url_host}",
|
||||
"#{external_url_scheme}://*.#{external_url_host}"
|
||||
],
|
||||
live_view: [
|
||||
signing_salt: compile_config!(:live_view_signing_salt)
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user