From 813a5abc76e9eba17827e0c016c955ad3b919f49 Mon Sep 17 00:00:00 2001 From: Rub21 Date: Fri, 9 Jan 2026 18:41:26 -0500 Subject: [PATCH] Update traefik config to allow iframe for vtiles --- hetzner/traefik/traefik.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/hetzner/traefik/traefik.yml b/hetzner/traefik/traefik.yml index 7e7a8312..e2536a24 100644 --- a/hetzner/traefik/traefik.yml +++ b/hetzner/traefik/traefik.yml @@ -37,6 +37,20 @@ http: # # Trust only known proxy headers (adjust based on your infrastructure) # hostsProxyHeaders: ["X-Forwarded-Host"] + secure-headers-allow-iframe: + headers: + # Allows iframe embedding (for comparison tools) + frameDeny: false + # Enables XSS protection in older browsers + browserXssFilter: true + # Prevents browsers from MIME-sniffing (forces declared Content-Type) + contentTypeNosniff: true + # Enforces HTTPS via HSTS + forceSTSHeader: true + stsSeconds: 31536000 # 1 year + stsIncludeSubdomains: true + stsPreload: true + redirect-nominatim: redirectRegex: regex: "^https://(nominatim(?:\\.staging)?\\.openhistoricalmap\\.org)/?$" @@ -53,7 +67,7 @@ http: tls: certResolver: letsencrypt middlewares: - - secure-headers + - secure-headers-allow-iframe tiler_cache-production-router: rule: Host(`tiler-cache.openhistoricalmap.org`) @@ -145,7 +159,7 @@ http: tls: certResolver: letsencrypt middlewares: - - secure-headers + - secure-headers-allow-iframe overpass-api-staging-router: rule: Host(`overpass-api.staging.openhistoricalmap.org`)