Skip to content

fix(csp): protomaps sources - #1438

Merged
CarlSchwan merged 1 commit into
nextcloud:masterfrom
curbengh:protomaps
Jul 28, 2026
Merged

CarlSchwan merged 1 commit into
nextcloud:masterfrom
curbengh:protomaps

Conversation

@curbengh

@curbengh curbengh commented Aug 11, 2025 •

Copy link
Copy Markdown
Contributor

add protomaps github pages url to CSP connect-src when using protomaps api for maplibre.
protomaps hosts glyphs and sprite on their github pages.

https://api.protomaps.com/styles/v5/light/en.json?key=MY_KEY

{
  "version": 8,
  "name": "[email protected] flavor@light lang@en",
  "glyphs": "https://protomaps.github.io/basemaps-assets/fonts/{fontstack}/{range}.pbf",
  "sprite": "https://protomaps.github.io/basemaps-assets/sprites/v4/light",
  "sources": {
    "protomaps": {
      "attribution": "<a href=\"https://github.com/protomaps/basemaps\">Protomaps</a> 漏 <a href=\"https://openstreetmap.org\">OpenStreetMap</a>",
      "type": "vector",
      "tiles": [
        "https://api.protomaps.com/tiles/v4/{z}/{x}/{y}.mvt?key=MY_KEY"
      ],
      "maxzoom": 15
    }
  }
}

@curbengh curbengh changed the title fix(csp): add protomaps github pages fix(csp): conditionally add protomaps github pages Aug 11, 2025
@curbengh curbengh changed the title fix(csp): conditionally add protomaps github pages fix(csp): protomaps sources Sep 24, 2025
when using protomaps api for maplibre

Signed-off-by: Ming Di Leom <[email protected]>
@curbengh

Copy link
Copy Markdown
Contributor Author

rebased after d529e05

@curbengh
curbengh requested a review from CarlSchwan July 28, 2026 08:16
@CarlSchwan
CarlSchwan merged commit b5d3a3f into nextcloud:master Jul 28, 2026
1 check 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