拒绝加载 preload-store.js

供参考:

Screen Shot 2020-05-07 at 4.39.08 PM

在最近升级后,Chrome 控制台中出现了此错误(升级前未出现此控制台错误,供参考):

Refused to load the script 'https://staging.test-site.com/preload-store.js' because it violates the following Content Security Policy directive: "script-src https://staging.test-site.com/logs/ https://staging.test-site.com/sidekiq/ https://staging.test-site.com/mini-profiler-resources/ https://staging.test-site.com/assets/ https://staging.test-site.com/brotli_asset/ https://staging.test-site.com/extra-locales/ https://staging.test-site.com/highlight-js/ https://staging.test-site.com/javascripts/ https://staging.test-site.com/plugins/ https://staging.test-site.com/theme-javascripts/ https://staging.test-site.com/svg-sprite/ https://www.google-analytics.com/analytics.js". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fall

浏览 meta 时也存在相同的控制台错误,供参考:

2 个赞

这是一个已知问题。@eviltrout 正在处理。

6 个赞

太棒了!

感谢更新!

顺便问一下 @gerhard

是否有这些“已知问题”的列表?这样当我遇到这些问题时,可以先搜索列表,再提问或避免造成困扰。

我这边已经搜索过,但没有找到任何关于此问题的已公开的 Discourse 或 Ember 问题。

2 个赞

不搜索是你的最佳选择,不过如果你先试着搜索一下也没关系,别担心。

3 个赞

如果您获取了最新版本的 Discourse,问题应该已经修复。

编辑:我看到问题仍在发生!我会查看一下。

2 个赞

现在真的修复了!

7 个赞

你好,Robin @eviltrout

谢谢,已确认(看起来你已移除了 preload-store.js)!!

顺便提一下,今天早上喝咖啡时偶然发现了你 2014 年那期精彩的视频,感觉它如今比 2014 年时更加贴切:

如何调试 Ember.js 应用程序

3 个赞

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