Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/76.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html phonegap应用程序internet访问问题。如何解决?_Html_Phonegap - Fatal编程技术网

Html phonegap应用程序internet访问问题。如何解决?

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

我在在线phonegap builder的帮助下制作了一个android应用程序。我在这里使用html css javascript。但是这个应用程序不需要任何互联网连接。它不需要任何互联网访问权限。我如何解决它?

使用白名单插件
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'">

欢迎使用堆栈溢出!请参加本次旅行,通读并发布您的尝试,并明确说明您的困境。