Html phonegap应用程序internet访问问题。如何解决?
我在在线phonegap builder的帮助下制作了一个android应用程序。我在这里使用html css javascript。但是这个应用程序不需要任何互联网连接。它不需要任何互联网访问权限。我如何解决它?使用白名单插件Html phonegap应用程序internet访问问题。如何解决?,html,phonegap,Html,Phonegap,我在在线phonegap builder的帮助下制作了一个android应用程序。我在这里使用html css javascript。但是这个应用程序不需要任何互联网连接。它不需要任何互联网访问权限。我如何解决它?使用白名单插件cordova插件白名单 并将其添加到config.xml中: <allow-navigation href="*" /> <allow-intent href="*" /> <access origin="*" /> 并在ind
cordova插件白名单
并将其添加到config.xml中:
<allow-navigation href="*" />
<allow-intent href="*" />
<access origin="*" />
并在index.html中添加以下内容:
<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'">
欢迎使用堆栈溢出!请参加本次旅行,通读并发布您的尝试,并明确说明您的困境。