Google maps链接不再嵌入

您好!

论坛上现有的嵌入式谷歌地图无法再正常工作了。
示例:

JavaScript 错误消息:

由于违反了以下内容安全策略指令,拒绝执行内联脚本:“script-src ‘nonce-2lnjuhekvca0sbtleehc2w’ ‘strict-dynamic’ ‘report-sample’ ‘unsafe-eval’ ‘unsafe-inline’ https: http:”。请注意,如果源列表中存在哈希值或 nonce 值,则会忽略“unsafe-inline”。

由于违反了以下内容安全策略指令,拒绝加载脚本“https://maps.googleapis.com/maps/api/js?client=google-maps-embed&paint_origin=&libraries=geometry,search&v=3.exp&language=en_US&callback=onApiLoad”:“script-src ‘nonce-2lnjuhekvca0sbtleehc2w’ ‘strict-dynamic’ ‘report-sample’ ‘unsafe-eval’ ‘unsafe-inline’ https: http:”。请注意,“strict-dynamic”已存在,因此基于主机的允许列表已被禁用。请注意,“script-src-elem”未显式设置,因此将使用“script-src”作为回退。

有什么办法可以解决这个问题吗?

编辑:在 Edge 上可以正常工作,问题出在我这边(可能是 Chrome 插件的问题),抱歉 :slight_smile:

该问题来自此插件:

我显然不推荐这个插件…… :sweat_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.