Using external scripts in PI Vision symbols.

A few years back I followed the excellent blog posts by Marcus Loeff to create a Google Maps symbol for PI Vision.

I have recently upgraded my PI Vision to PI Vision 2023. The symbol no longer loads and the console shows the following error:

ext?v=G4mS4bZlroyb8Ewe1d9oo_3QpW8STnBiAom_ohAkMZg1:1 Refused to load the script 'https://maps.google.com/maps/api/js?key=<APIKEY>&callback=gMapsCallback' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval' 'nonce-YxiwlaKTFWgVViaF'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

 

I have attempted to set the Content-Security-Policy header to script-src 'self' https://maps.google.com for the site, but this does not seem to work.

 

Any suggestions on how I should configure the headers to allow Google Maps API scripts to run.