如何解决CSP & Safari:因为CSP拒绝加载,但是CSP设置了
我已经通过 HTML 页面头部的 Meta 标签将我的 CSP 设置为以下内容:
<meta http-equiv="Content-Security-Policy" content="
script-src https://code.jquery.com/ 'unsafe-inline';
">
这在 Chrome 中运行良好 - 但在 Safari 和 IOS 中我仍然收到以下错误:
Refused to load https://code.jquery.com/jquery-3.5.1.slim.min.js because it appears in neither the script-src directive nor the default-src directive of the Content Security Policy.
谁能看出为什么会这样?谢谢!!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。