You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 14, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: readme.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ When the application is launched, the plugin automatically handles navigation to
40
40
Lastly, since network connectivity is essential to the operation of a hosted web application, the plugin implements a basic offline feature that will show an offline page whenever connectivity is lost and will prevent users from interacting with the application until the connection is restored.
41
41
42
42
## Installation
43
-
`cordova plugin add com.manifoldjs.hostedwebapp`
43
+
`cordova plugin add cordova-plugin-hostedwebapp`
44
44
45
45
> **IMPORTANT:** Before using the plugin, make sure to copy the W3C manifest file to the **root** folder of the Cordova application, alongside **config.xml**, and name it **manifest.json**.
46
46
@@ -68,7 +68,7 @@ The plugin enables using content hosted in a web site inside a Cordova applicati
68
68
> **Note:** You can find a sample manifest file at the start of this document.
69
69
70
70
1. Add the **Hosted Web Application** plugin to the project.
71
-
`cordova plugin add com.manifoldjs.hostedwebapp`
71
+
`cordova plugin add cordova-plugin-hostedwebapp`
72
72
73
73
1. Add one or more platforms, for example, to support Android.
74
74
`cordova platform add android`
@@ -131,7 +131,7 @@ For example, the following manifest references icons from the _/resources_ path
131
131
</pre>
132
132
133
133
### URL Access Rules
134
-
For a hosted web application, the W3C manifest defines a scope that restricts the URLs to which the application can navigate. Additionally, the manifest can include a proprietary setting named **mjs_urlAccess** that defines an array of access rules each one consisting of a _url_ attribute that identifies the target of the rule and indicates whether URLs matching the rule should be navigated to by the application. Non-matching URLs will be launched externally.
134
+
For a hosted web application, the W3C manifest defines a scope that restricts the URLs to which the application can navigate. Additionally, the manifest can include a proprietary setting named **mjs_access_whitelist** that defines an array of access rules each one consisting of a _url_ attribute that identifies the target of the rule and indicates whether URLs matching the rule should be navigated to by the application. Non-matching URLs will be launched externally.
135
135
136
136
Typically, Cordova applications define access rules to implement a security policy that controls access to external domains. The access rules must not only allow access to the scope defined by the W3C manifest but also to external content used within the site, for example, to reference script files hosted by a CDN origin.
137
137
@@ -140,9 +140,9 @@ To configure the security policy, the plugin hook maps the scope and URL access
0 commit comments