更新时间:2022-12-12 16:31:02
我在浏览器和Android手机都这个问题。它是由最近的升级在科尔多瓦的安全性,并且需要一个更好的内容安全性政策造成的。
I had this problem in both the browser and my Android phone. It was caused by a recent upgrade in Cordova's security, and the need for a better "Content-Security-Policy".
我固定它通过index.html中加入这一行:
I fixed it by adding to this line in index.html:
<meta http-equiv="Content-Security-Policy" content="default-src...
我说:
'unsafe-inline' 'unsafe-eval'