Update project template with new whitelist defaults

This commit is contained in:
Andrew Grieve 2015-03-05 22:31:48 -05:00
parent 55be212594
commit 316cf057f3
3 changed files with 19 additions and 21 deletions

View File

@ -19,10 +19,11 @@
--> -->
<html> <html>
<head> <head>
<meta charset="utf-8" /> <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: blob: https://ssl.gstatic.com/accessibility/javascript/android/; style-src 'self' 'unsafe-inline'">
<meta name="format-detection" content="telephone=no" /> <meta name="format-detection" content="telephone=no">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" /> <meta name="msapplication-tap-highlight" content="no">
<link rel="stylesheet" type="text/css" href="css/index.css" /> <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<link rel="stylesheet" type="text/css" href="css/index.css">
<title>Hello World</title> <title>Hello World</title>
</head> </head>
<body> <body>
@ -35,8 +36,5 @@
</div> </div>
<script type="text/javascript" src="cordova.js"></script> <script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="js/index.js"></script> <script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript">
app.initialize();
</script>
</body> </body>
</html> </html>

View File

@ -47,3 +47,5 @@ var app = {
console.log('Received Event: ' + id); console.log('Received Event: ' + id);
} }
}; };
app.initialize();

View File

@ -30,28 +30,26 @@
Apache Cordova Team Apache Cordova Team
</author> </author>
<!-- Allow access to arbitrary URLs in the Cordova WebView. This is a <!-- <content src="http://mysite.com/myapp.html" /> for external pages -->
development mode setting, and should be changed for production. --> <content src="index.html" />
<access origin="http://*/*"/>
<access origin="https://*/*"/>
<!-- Whitelist docs: https://github.com/apache/cordova-plugin-whitelist -->
<access origin="*" />
<!-- Grant certain URLs the ability to launch external applications. This <!-- Grant certain URLs the ability to launch external applications. This
behaviour is set to match that of Cordova versions before 3.6.0, and behaviour is set to match that of Cordova versions before 3.6.0, and
should be reviewed before launching an application in production. It should be reviewed before launching an application in production. It
may be changed in the future. --> may be changed in the future. -->
<access origin="tel:*" launch-external="yes"/> <allow-intent href="http://*/*" />
<access origin="geo:*" launch-external="yes"/> <allow-intent href="https://*/*" />
<access origin="mailto:*" launch-external="yes"/> <allow-intent href="tel:*" />
<access origin="sms:*" launch-external="yes"/> <allow-intent href="sms:*" />
<access origin="market:*" launch-external="yes"/> <allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<!-- <content src="http://mysite.com/myapp.html" /> for external pages --> <allow-intent href="market:*" />
<content src="index.html" />
<preference name="loglevel" value="DEBUG" /> <preference name="loglevel" value="DEBUG" />
<!-- <!--
<preference name="splashscreen" value="resourceName" /> <preference name="splashscreen" value="splash" />
<preference name="backgroundColor" value="0xFFF" /> <preference name="backgroundColor" value="0xFFF" />
<preference name="loadUrlTimeoutValue" value="20000" /> <preference name="loadUrlTimeoutValue" value="20000" />
<preference name="InAppBrowserStorageEnabled" value="true" /> <preference name="InAppBrowserStorageEnabled" value="true" />