Fix origin checking for local network and remote access.
This commit is contained in:
parent
0d35752b46
commit
6247744f70
1 changed files with 8 additions and 0 deletions
|
@ -6,6 +6,14 @@ config :augie, AugieWeb.Endpoint,
|
|||
http: [:inet, port: 80],
|
||||
live_view: [
|
||||
signing_salt: System.get_env("LIVE_VIEW_SIGNING_SALT")
|
||||
],
|
||||
check_origin: [
|
||||
# If public device URL is enabled in balena cloud
|
||||
"https://#{System.get_env("BALENA_DEVICE_UUID")}.balena-devices.com",
|
||||
# Using local network mdns.
|
||||
"http://#{System.get_env("HOSTNAME")}.local/",
|
||||
# Directly by IP address on the local LAN.
|
||||
"http://192.168.*.*/"
|
||||
]
|
||||
|
||||
# config :logger, level: :debug
|
||||
|
|
Reference in a new issue