julien-nc / phonetrack

Nextcloud app to create tracking sessions to display phones position in real time and export activity to gpx.
GNU Affero General Public License v3.0
67 stars 6 forks source link

Custom mapbox tile server not working due to violation of CSP policy #58

Open tmlmt opened 2 months ago

tmlmt commented 2 months ago

Reproduction

Comment There seems to be an issue when setting the CSP policies for the app. I suppose something has to be done within this function: https://github.com/julien-nc/phonetrack/blob/43740642c59dd590b14c14fb344c3ca14371e4dd/lib/Controller/PageController.php#L194

Workaround

Use the CSP Editor app to add "api.mapbox.com" in the Connect policy