mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 10:24:05 +00:00
fix(map): the iOS app's tile store is allowed by the CSP, so its maps draw tiles again
The iOS app rewrites raster tiles to trek-tile:// and answers them from its store. WebKit checks that scheme against img-src, which had only https:, so every tile was refused and the app showed routes and markers on a blank map.
This commit is contained in:
@@ -114,6 +114,14 @@ describe('global CSP: the imagery host (#2307)', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('global CSP: the iOS app tile store', () => {
|
||||
it('allows trek-tile: images, or the app draws routes on a blank map', async () => {
|
||||
// The app rewrites raster tiles to trek-tile:// (client/src/native/tileCache.ts)
|
||||
// and answers them from its store; WebKit checks that scheme against img-src.
|
||||
expect(await directiveSources('img-src')).toContain('trek-tile:');
|
||||
});
|
||||
});
|
||||
|
||||
describe('global CSP: the elevation tiles of the 3D tour view', () => {
|
||||
it('allows the Terrarium tiles, which MapLibre and the flyover preload fetch', async () => {
|
||||
// The 3D view drapes the route over Mapzen's open elevation model on AWS Open
|
||||
|
||||
Reference in New Issue
Block a user