由於 CSP 限制,內嵌的 JS 腳本標籤無法加載,我不知道如何修復。
2 个赞
此帖子中的一些信息可能有所帮助:Mitigate XSS Attacks with Content Security Policy
1 个赞
我已经阅读了这些和其他内容,但仍然无法理清如何实际将例外添加到 content_security_policy_script_src。
1 个赞
1 个赞
我在 Firefox 浏览器中遇到的错误是 nonce-s0m3h4sh,而我没有遇到 sha256-s0m3h4sh。但当我刚才在 Chrome 中查看时,它却是 sha256 的那个。
2 个赞
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
