cordova的白名单插件所形成的问题 Please add one when using the cordova-plugin-whitelist plugin
来源:互联网 发布:淘宝网退回旧版本 编辑:程序博客网 时间:2024/06/10 06:17
问题:
不间断地弹出这个错误:
"No Content-Security-Policy meta tag found. Please add one when using the cordova-plugin-whitelist plugin.", source: file:///android_asset/www/plugins/cordova-plugin-whitelist/whitelist.js
*******************************************************本文作者:Michael_ouyang********************************************************
官网的使用白名单方法:
在你对应的html文件中,添加上<meta> 标签
由于代码太长,本来从项目内复制下来
使用这个标签可以运行所有事情,因此我使用的是这个标签
<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'">加上这句代码,一般问题就解决了,如果还有关于白名单的问题,请留言。
1 0
- cordova的白名单插件所形成的问题 Please add one when using the cordova-plugin-whitelist plugin
- No Content-Security-Policy meta tag found. Please add one when using the cordova-plugin-whitelist pl
- cordova-plugin-whitelist 协议白名单配置整理
- cordova whitelist白名单
- cordova wifi插件(cordova plugin add cordova-plugin-hotspot)
- 关于Android的Cordova插件plugin OnActivityResult无效的问题
- Cordova 开发属于自己的插件(plugin
- cordova-plugin-wechat插件的使用
- cordova-plugin-app-version插件的使用
- Cordova配置自己的Plugin
- cordova插件-motorola-datawedge-cordova-plugin
- Cordova 开发属于自己的插件(plugin)
- Cordova 开发属于自己的插件(plugin)
- Cordova 开发属于自己的插件(plugin)
- Cordova 开发属于自己的插件(plugin)
- Cordova 开发属于自己的插件(plugin)
- Cordova plugin
- cordova plugin
- 信号与系统3:单位阶跃,单位响应以及系统性质
- 你不敢孤独,谈什么卓越?
- Android从菜鸟到笨鸟:ViewPager+Handler实现广告栏无限循环
- TPC-H测试数据表生成,以及在Impala中的使用
- 15分钟帮你轻松理解 JS闭包
- cordova的白名单插件所形成的问题 Please add one when using the cordova-plugin-whitelist plugin
- 防安全漏洞开发规范
- 使用Vagrant在Windows下部署开发环境
- 使用getBackground().setAlpha,导致其他布局背景透明度都改变的问题
- 怎样写出优秀的研究论文?
- 文章标题
- OC中属性self.a与_a访问的区别
- 如何使用Android Studio把自己的Android library分享到jCenter和Maven Central
- NSTimer 倒计时