Esri / Esri/esri-leaflet-vector

Implement support for strict Content-Security-Policy (MapLibre usage)

Open
#218 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
72
Forks
54
PR merge metrics
No merged PRs in 30d

Description

### Describe the problem

Hello, currently when using this library with a Content-Security-Policy policy, users are forced to use ```worker-src blob:``` which is inherently unsafe due to it being functionally equivalent to ```unsafe-eval```. This is due to the usage of maplibre-gl. This would be generally seen as a pretty notable hole in a deployed Content-Security-Policy.

### Describe the proposed solution

maplibre-gl has a CSP variant of it's JS bundle, per: https://maplibre.org/maplibre-gl-js/docs/#csp-directives It would be greatly appreciated if support for this was implemented, as then a much more fine grained and significantly less vulnerable Content-Security-Policy can be leveraged.

### Alternatives considered

_No response_

### Additional Information

_No response_

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how this library integrates and bundles maplibre-gl, then compare that path with MapLibre's documented CSP variant and directives. Done means users can enable the CSP-compatible bundle without requiring worker-src blob:; verify the integration with the repository's existing checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
security, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.