Lost colors in legend GPS overlay
URL
No response
How to reproduce the issue?
- Enable OpenStreetMap GPS traces
As it was before:
Screenshot(s) or anything else?
No response
Which deployed environments do you see the issue in?
Released version at openstreetmap.org/edit
What version numbers does this issue effect?
2.37.3
Which browsers are you seeing this problem on?
Firefox
The inline styles from https://github.com/osmlab/editor-layer-index/blob/gh-pages/sources/world/OpenStreetMap-GPS.geojson are disallowed by a nonce (that disables unsafe-inline) that ends up in the content security policy for some reason. But I can't figure out where that nonce comes from.
should we transfer this issue to openstreetmap-website? iD doesn't define the CSP itself, it seems like the nonce is defined over there if I'm reading the code right
Or, we could move this into iD. Those styles are not going to change.
Since the "disabling" of unsafe-inline styles breaks so surprisingly little, I'd say remove the need for that completely and override the attribution of the GPS layer.