Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2.0
Description
[CDVWhitelist errorStringForURL:] currently returns the hard-coded error string, "ERROR whitelist rejection: url='[failed URL]'", used when a host fails its whitelist check. It would be nice if the format string for this message could be user-defined/customized. A couple of suggested solutions:
- Access a customized message internally in errorStringForURL, by having a well-defined localization key to reference it, and defaulting to the original value if it hasn't been set.
- Add a public property on CDVWhitelist to specify it, same "default" behavior as above.
The latter is probably the most flexible.