Google maps link not embedding anymore

AI-generated summary

Canapin reported that embedded Google Maps links stopped working on their forum, citing Content Security Policy (CSP) errors in the browser console. The errors indicated blocked inline scripts and external Google Maps API scripts due to CSP restrictions. However, in post 2, Canapin clarified the issue was client-side — specifically, it worked in Edge but not Chrome, suggesting a browser extension was interfering. In post 3, Canapin identified the culprit as the Chrome extension “Auto Quality for YouTube” (https://chrome.google.com/webstore/detail/auto-quality-for-youtube/iaddfgegjgjelgkanamleadckkpnjpjc), and advised against using it due to the conflict. The issue was not with Discourse or Google Maps embeds themselves, but with a third-party browser plugin interfering with script execution.

Hi!

Existing embedded google maps don’t work anymore on my forum.
Examples:

The JS error messages:

Refused to execute inline script because it violates the following Content Security Policy directive: “script-src ‘nonce-2lnjuhekvca0sbtleehc2w’ ‘strict-dynamic’ ‘report-sample’ ‘unsafe-eval’ ‘unsafe-inline’ https: http:”. Note that ‘unsafe-inline’ is ignored if either a hash or nonce value is present in the source list.

Refused to load the script ‘https://maps.googleapis.com/maps/api/js?client=google-maps-embed&paint_origin=&libraries=geometry,search&v=3.exp&language=en_US&callback=onApiLoad’ because it violates the following Content Security Policy directive: “script-src ‘nonce-2lnjuhekvca0sbtleehc2w’ ‘strict-dynamic’ ‘report-sample’ ‘unsafe-eval’ ‘unsafe-inline’ https: http:”. Note that ‘strict-dynamic’ is present, so host-based allowlisting is disabled. Note that ‘script-src-elem’ was not explicitly set, so ‘script-src’ is used as a fallback.

Any idea how to fix that?

edit : works on Edge, the issue is from my end (probably a Chrome plugin), sorry about that. :slight_smile:

The issue came from this plugin:

I obviously don’t recommend this plugin, then… :sweat_smile: