mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-03-17 22:36:17 +00:00
enhance security by enforcing strict SameSite cookies, validating OIDC callback host, and improving path matching logic
This commit is contained in:
@@ -109,6 +109,10 @@ def build_caddyfile(apps, auth_policies, routes):
|
||||
base, upstream_path = split_upstream(upstream)
|
||||
|
||||
lines.append(f"{', '.join(hosts)} {{")
|
||||
lines.append(" # Security: overwrite client-supplied forwarding headers with verified values")
|
||||
lines.append(" request_header X-Forwarded-For {remote_host}")
|
||||
lines.append(" request_header -X-Forwarded-Host")
|
||||
lines.append("")
|
||||
emit_auth_portal()
|
||||
|
||||
for static_route in static_routes:
|
||||
|
||||
Reference in New Issue
Block a user