Support for Mapbox CSP #2397
Unanswered
blackswanny
asked this question in
Q&A
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Mapbox uses Web Worker so it can experience issues with Content Security Policy if web worker is hosted in another host than the page that loads it
Mapbox provides solution to use another scripts. However, I don't see how to do the same via react-map-gl to point to specific mapbox-gl-csp.js file as source of Mapbox? react-map-gl only allows to change worker URL or Class, which may not be enough to avoid issues
See
https://docs.mapbox.com/mapbox-gl-js/guides/browsers-and-testing/#strict-csp-environments
Beta Was this translation helpful? Give feedback.
All reactions