我已通过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.
有人知道为什么会这样吗?谢谢
暂无答案!
目前还没有任何答案,快来回答吧!