I'm trying to get a map to render using the CSP version.
Everything appears to be working except rendering the tiles, as you can see from the JSFiddle and the code below.
No errors are thrown in the console.
<div id='map'></div>
mapboxgl.accessToken = 'ACCESS_TOKEN';
mapboxgl.workerUrl = 'https://api.mapbox.com/mapbox-gl-js/v1.6.1/mapbox-gl-csp-worker.js';
var el = document.createElement('div');
el.style.backgroundImage = 'url(https://placekitten.com/g/40/40/)';
el.style.width = 40 + 'px';
el.style.height = 40 + 'px';
var map = window.map = new mapboxgl.Map({
container: 'map',
zoom: 12.5,
center: [-74.5, 40],
style: 'mapbox://styles/mapbox/streets-v11',
hash: true
});
new mapboxgl.Marker(el)
.setLngLat([ -74.5, 40 ])
.addTo(map);
#map {
position: absolute;
top: 0;
bottom: 0;
width: 100%;
}