Cordova页面解析页面中script 内容失败,Refused to execute inline script because it violates the following

来源:互联网 发布:南昌软件外包公司 编辑:程序博客网 时间:2024/05/17 01:54


异常的原因:

Content-Security-Policy的默认配置是default-src 'self'。

解决方案:

添加script-src * 'unsafe-inline',对于页面内部标签不进行安全验证。




阅读全文
0 0
原创粉丝点击