complete-node-bootcamp
complete-node-bootcamp copied to clipboard
Fixing Mapbox Error
Hello
in order to fix mapbox error please :
-
in app.js- change- app.use(helmet()) -> to >- app.use(helmet({ contentSecurityPolicy: false }))
-
in tour.pag - I update the version to - v2.9.1 :
script(src='https://api.mapbox.com/mapbox-gl-js/v2.9.1/mapbox-gl.js') link(href='https://api.mapbox.com/mapbox-gl-js/v2.9.1/mapbox-gl.css' rel='stylesheet')
and finally it works :-)