From e3860163496ec4fa25c568cd517ab9d48b58f0cf Mon Sep 17 00:00:00 2001 From: Smittix Date: Fri, 20 Feb 2026 18:03:06 +0000 Subject: [PATCH] Default dashboard assets/fonts to local bundles --- routes/offline.py | 15 ++++++++------- static/js/core/settings-manager.js | 4 ++-- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/routes/offline.py b/routes/offline.py index ff25922..51326f7 100644 --- a/routes/offline.py +++ b/routes/offline.py @@ -9,13 +9,14 @@ import os offline_bp = Blueprint('offline', __name__, url_prefix='/offline') # Default offline settings -OFFLINE_DEFAULTS = { - 'offline.enabled': False, - 'offline.assets_source': 'cdn', - 'offline.fonts_source': 'cdn', - 'offline.tile_provider': 'cartodb_dark_cyan', - 'offline.tile_server_url': '' -} +OFFLINE_DEFAULTS = { + 'offline.enabled': False, + # Default to bundled assets/fonts to avoid third-party CDN privacy blocks. + 'offline.assets_source': 'local', + 'offline.fonts_source': 'local', + 'offline.tile_provider': 'cartodb_dark_cyan', + 'offline.tile_server_url': '' +} # Asset paths to check ASSET_PATHS = { diff --git a/static/js/core/settings-manager.js b/static/js/core/settings-manager.js index f6983fc..cbbabf7 100644 --- a/static/js/core/settings-manager.js +++ b/static/js/core/settings-manager.js @@ -6,8 +6,8 @@ const Settings = { // Default settings defaults: { 'offline.enabled': false, - 'offline.assets_source': 'cdn', - 'offline.fonts_source': 'cdn', + 'offline.assets_source': 'local', + 'offline.fonts_source': 'local', 'offline.tile_provider': 'cartodb_dark_cyan', 'offline.tile_server_url': '' },