Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-1755

iOS: Allow customization of whitelist rejection message

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.3.0
    • cordova-ios

    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.

      Attachments

        Activity

          People

            agrieve Andrew Grieve
            khawkins@salesforce.com Kevin Hawkins
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 4h
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified