首页 > 学院 > 开发设计 > 正文

在ionic2+cordova中用iframe引入外部页面

2019-11-08 00:38:21
字体:
来源:转载
供稿:网友

一.在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; }


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表