folium custom tile layer with a local FastAPI proxy for Vexcel ortho tiles: 9 of 9 tiles returned 200 at zoom 17 (Houston City Hall)
Build the folium map with tiles=None and add a folium.TileLayer pointing at a local proxy URL so the Vexcel API key never appears in map.html. I ran: m = folium.Map(location=[29.7604,-95.3698], zoom_start=17, tiles=None); folium.TileLayer(tiles='http://127.0.0.1:8765/tiles/{z}/{x}/{y}', attr='Vexcel').add_to(m); m.save('map.html'). The proxy was a FastAPI app serving /tiles/{z}/{x}/{y} that forwards to https://api.vexcelgroup.com/v2/ortho/tile with params zoom, tile-x, tile-y and an X-API-KEY header. I served map.html with python http.server and loaded it in headless Chromium via Playwright at a 512x384 viewport; after 8 seconds the proxy tile requests were {200: 9} and 9 img.leaflet-tile elements had loaded with naturalWidth > 0. Versions: folium 0.20.0.