用户因CSP问题无法登录

一段时间以来,一名用户无法登录论坛。
他有一个 CSP 问题:

拒绝执行内联脚本,因为它违反了以下内容安全策略指令:“script-src https://boulette.advantaged.net/logs/ https://boulette.advantaged.net/sidekiq/ https://boulette.advantaged.net/mini-profiler-resources/ https://boulette.advantaged.net/assets/ https://boulette.advantaged.net/brotli_asset/ https://boulette.advantaged.net/extra-locales/ https://boulette.advantaged.net/highlight-js/ https://boulette.advantaged.net/javascripts/ https://boulette.advantaged.net/plugins/ https://boulette.advantaged.net/theme-javascripts/ https://boulette.advantaged.net/svg-sprite/ 'sha256-8uakdak4qxxceyzl0wxad2nnj2tgkya14hybh66pnn0='”。需要“unsafe-inline”关键字、哈希值('sha256-8uAKDaK4QxxCeYZl0Wxad2Nnj2tgKyA14hYBh66pnn0=')或随机数('nonce-...')才能启用内联执行。

deprecate-shim.js:33 弃用:Function.prototype 扩展已被弃用,请从 function(){} .property('bar') 迁移到 computed('bar', function() {})。[弃用 ID:function-prototype-extensions.property] 更多详情请参阅 https://deprecations.emberjs.com/v3.x#toc_function-prototype-extensions-property。
(anonymous) @ deprecate-shim.js:33

准确地说,我从未配置过任何 CSP,而是让它按默认配置:

有人能帮帮我吗?
提前感谢。

这只发生在单个用户身上吗?

只有一个人联系我们。

这似乎是特定用户浏览器的问题。

所讨论的脚本(哈希值为 sha256-8uAKDaK4QxxCeYZl0Wxad2Nnj2tgKyA14hYBh66pnn0=)已存在于 CSP 中。

当我访问该网站时,我看不到任何 CSP 错误。

3 个赞

好的,感谢您的帮助! :slight_smile:

1 个赞

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