csp&safari:由于csp而拒绝加载,但已设置csp

wa7juj8i  于 2021-09-13  发布在  Java
关注(0)|答案(0)|浏览(374)

我已通过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.

有人知道为什么会这样吗?谢谢

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题