2
license: Licensed to the Apache Software Foundation (ASF) under one
3
or more contributor license agreements. See the NOTICE file
4
distributed with this work for additional information
5
regarding copyright ownership. The ASF licenses this file
6
to you under the Apache License, Version 2.0 (the
7
"License"); you may not use this file except in compliance
8
with the License. You may obtain a copy of the License at
10
http://www.apache.org/licenses/LICENSE-2.0
12
Unless required by applicable law or agreed to in writing,
13
software distributed under the License is distributed on an
14
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
KIND, either express or implied. See the License for the
16
specific language governing permissions and limitations
23
> The `whitelist` object provides an interface for testing whether arbitrary
24
> URLs are allowed by the currently active configuration, or would be allowed
25
> by a given set of whitelist patterns.
30
- cordova.whitelist.match
31
- cordova.whitelist.test
33
### cordova.whitelist.match
35
Indicates whether a given URL would be allowed by a set of Whitelist URL
38
cordova.whitelist.match(url, patterns, callback);
40
`callback` will be invoked with a boolean argument indicating whether the
41
url matches the set of patterns.
43
### cordova.whitelist.test
45
Indicates whether a given URL would be allowed by the current application
48
cordova.whitelist.test(url, callback);
50
`callback` will be invoked with a boolean argument indicating whether the
51
url is currently whitelisted.