一.在html中配置csp:
<meta http-equiv="Content-Security-Policy"
content="default-src *; frame-src *; style-src * ‘self‘ ‘unsafe-inline‘ ‘unsafe-eval‘;
script-src * ‘self‘ ‘unsafe-inline‘ ‘unsafe-eval‘;">
二.在config.xml里面配置
<access origin="*" subdomains="true" />
<allow-navigation href="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
三.在ionic2中消毒
::-webkit-scrollbar, *::-webkit-scrollbar { display: none; }