Maps CSP

Last modified: November 19, 2024

Introduction

The Maps widget requires access to a map provider (the exact provider is based on your configuration) in order to work. Below, you can see the allowlist domains you need to set up for each available provider.

Setup Information

Google Maps

You can enable allowlist CSP for Google Maps by including these domains:

script-src 'self' https: blob:;
img-src 'self' https://*.googleapis.com https://*.gstatic.com *.google.com *.googleusercontent.com data:;
frame-src *.google.com;
connect-src 'self' https://*.googleapis.com *.google.com https://*.gstatic.com data: blob:;
font-src https://fonts.gstatic.com;
style-src 'self' 'unsafe-inline' https://fonts.googleapis.com;
worker-src blob:;

OpenStreetMap

You can enable allowlist CSP for Open Street Maps by including these domains:

script-src 'self';
img-src 'self' https://*.tile.osm.org data:;

Mapbox

You can enable enable allowlist CSP for Mapbox by including these domains:

worker-src blob: ;
child-src blob: ;
img-src data: blob: ;
connect-src https://api.mapbox.com https://events.mapbox.com ;

HERE Maps

You can enable allowlist CSP for HERE Maps by including these domains:

script-src 'self';
img-src 'self' https://*.base.maps.cit.api.here.com data:;