fix(photo-addon): add referrer policy for OSM map tiles#360
fix(photo-addon): add referrer policy for OSM map tiles#360paul43210 wants to merge 2 commits intoowncloud:mainfrom
Conversation
failing tests: typecheck+ pnpm check:types
Scope: 9 of 10 workspace projects |
|
Fixed the TypeScript errors — replaced |
OSM's tile servers require a Referer header, but oCIS may set a strict Referrer-Policy that strips it, causing intermittent 403 errors on map tiles. Fix: inject a meta referrer tag and set referrerPolicy on each tile image element. Failed tiles retry once after 500ms. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace L.TileLayer.extend() with event-based approach using tileloadstart/tileerror events. The previous approach accessed the protected createTile method, causing TypeScript errors in CI. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
55ef797 to
4fe0d17
Compare
Summary
Refererheader, but oCIS may set a strictReferrer-Policythat strips it<meta name="referrer" content="no-referrer-when-downgrade">when the map initializes (restored on unmount)referrerPolicyon each tile<img>element via custom TileLayerTest plan
🤖 Generated with Claude Code