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

异常的原因: Content-Security-Policy的默认配置是default-src 'self'。 解决方案: 添加script-src * 'unsafe-inline',对于页面内部标签不进行安全验证。
相关文章
相关标签/搜索