docker-flare
docker-flare copied to clipboard
无法加载统计代码
你遇到了什么样的麻烦?
似乎是由于CSP策略导致无法加载 js 统计脚本
如何复现这个问题?
在界面设置页脚部分添加谷歌统计代码后,刷新后提示:
Refused to load the script 'https://https://www.googletagmanager.com/gtag/js?id=ccccc.js' because it violates the following Content Security Policy directive: "script-src 'none'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
应用版本
docker flare:latest
搜索
- [ ] 在提交这个表格之前,我已经进行了相关问题搜索,没有找到相关的问题或解决方案。
补充描述
请问要怎样设置才能加载统计代码?