From fee00015174e2886430a09debcacf9e992ac8563 Mon Sep 17 00:00:00 2001 From: StasonJatham Date: Wed, 20 May 2026 19:13:25 +0200 Subject: [PATCH] Polish public UI and fix ReDoc CSP --- router_dyndns/ddns.py | 55 ++++++++++++++++++++++--------------------- tests/test_ddns.py | 20 ++++++++++++++++ 2 files changed, 48 insertions(+), 27 deletions(-) diff --git a/router_dyndns/ddns.py b/router_dyndns/ddns.py index 91a409f..de180c3 100644 --- a/router_dyndns/ddns.py +++ b/router_dyndns/ddns.py @@ -610,9 +610,9 @@ def _content_security_policy(path: str) -> str: return ( "default-src 'self'; " "script-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net; " - "style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net; " + "style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net https://fonts.googleapis.com; " "img-src 'self' data: https://fastapi.tiangolo.com; " - "font-src 'self' https://cdn.jsdelivr.net; " + "font-src 'self' https://cdn.jsdelivr.net https://fonts.gstatic.com; " "connect-src 'self'; " "form-action 'self'; " "frame-ancestors 'none'" @@ -667,9 +667,9 @@ def _render_public_home(

Generate a random hostname, paste the update URL into your router, and keep the private status page. Your own DNS name can point to this hostname with a CNAME.

-