Safari内容安全策略支持


只怕再见是故人
2025-03-25 05:08:13 (14天前)

在哪里可以找到Safari浏览器支持哪些内容安全策略(CSP)功能?

我仅收到Safari的错误报告,并想确认Safari是否支持我已有的策略。

我的政策:

base-uri; object-src; script-src https://*.example.com *.example.com ‘nonce-LwhUCQNCuRTtk6dBXRpPjw==’ ‘strict-dynamic’ ‘unsafe-inline’; report-uri https://example.com/csp/report;”,

2 条回复
  1. 1# 春风助手 | 2020-08-17 16-37

    看来我的答案已经过时了:

    重要提示:此文档不再更新。有关Apple SDK的最新信息,请访问文档网站。https://developer.apple.com/documentation

    旧答案:

    几个月后,我偶然发现了自己的未解之谜:(。

    我发现,找出支持的最佳方法是Safari的发行说明。https://developer.apple.com/library/content/releasenotes/General/WhatsNewInSafari/Introduction/Introduction.html

    Safari 10.0.0中添加了FWIW CSP 2.0支持

登录 后才能参与评论