mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-30 16:33:16 +00:00
feat(maps): one shared list of the shipped tile hosts for the CSP and the client
A GL map fetches its style and its tiles, so it can only draw from a host the server's connect-src names. The raster presets and OpenFreeMap were written out in the middleware while the client kept its own idea of them, and nothing held the two together. The hosts, their reasons and the default OpenFreeMap style now live in shared/src/maps/map-defaults.ts. The middleware builds those sources from the list, and the client takes the default style from it, so the renderer choice the next steps add reads the same hosts the policy allows. The policy an install sends stays byte for byte the same: a test pins the whole connect-src in its order.
This commit is contained in:
@@ -27,6 +27,7 @@ export * from './config/config.schema';
|
||||
export * from './system-notice/system-notice.schema';
|
||||
export * from './maps/maps.schema';
|
||||
export * from './maps/map-connect-hosts';
|
||||
export * from './maps/map-defaults';
|
||||
export * from './maps/place-shadow.schema';
|
||||
export * from './maps/route-usage.schema';
|
||||
export * from './category/category.schema';
|
||||
|
||||
Reference in New Issue
Block a user