Skip to content

Fix layer minimaps in the Map Layers sidebar#429

Merged
Rub21 merged 2 commits into
stagingfrom
style-minimpas
Jun 24, 2026
Merged

Fix layer minimaps in the Map Layers sidebar#429
Rub21 merged 2 commits into
stagingfrom
style-minimpas

Conversation

@Rub21

@Rub21 Rub21 commented Jun 23, 2026

Copy link
Copy Markdown
Member
  • The OHM layers loaded their style from an absolute URL, which broke with CORS across environments. They now use a relative URL, so the style loads from the same origin as the page (preview, staging, or production).

  • The minimaps render with maplibre, which fetches tiles via fetch(). The tile hosts were only allowed in img-src, so CSP blocked them in connect-src. Added the tile hosts to connect-src as well.

Ref: OpenHistoricalMap/issues#1378

cc. @erictheise

@Rub21 Rub21 requested a review from erictheise June 23, 2026 20:59
@Rub21

Rub21 commented Jun 23, 2026

Copy link
Copy Markdown
Member Author

@Rub21 Rub21 merged commit 67597d5 into staging Jun 24, 2026
4 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants