jpduckwo opened a new issue #1371:
URL: https://github.com/apache/cordova-android/issues/1371


   # Bug Report
   
   ## Problem
   
   The documentation states that the whitelist plugin is integrated into 
cordova-android v10. However removing the plugin breaks functionality.
   
   > Deprecation Notice
   With the Allow List functionality now integrated into the core of Cordova 
Android (10.x and greater), this plugin is no longer required.
   > Existing projects using Cordova Android 10 or greater should remove this 
plugin with the following command:
   > cordova plugin rm cordova-plugin-whitelist
   
   ### What is expected to happen?
   
   Without the plugin installed, the whitelist settings from config.xml should 
work.
   e.g.
   ```
       <access origin="*" />
       <allow-intent href="http://*/*"; />
       <allow-intent href="https://*/*"; />
       <allow-intent href="tel:*" />
       <allow-intent href="sms:*" />
       <allow-intent href="mailto:*"; />
       <allow-intent href="geo:*" />
   ```
   
   ### What does actually happen?
   In my specific use case, XHR requests to https urls were blocked. They 
failed in PluginManager.shouldAllowRequest. Which seems to only allow some 
specific local based cases if it doesn't have a response from a plugin
   
   ## Information
   To work around this problem you can manually install the plugin `cordova 
plugin add cordova-plugin-whitelist` AFTER adding the platform. However if you 
rm the platform then re-add it, it won't automatically install the plugin and 
drops this message:
   
   ```
   Installing "cordova-plugin-whitelist" for android
   Plugin doesn't support this project's cordova-android version. 
cordova-android: 10.1.1, failed version requirement: >=4.0.0 <10.0.0
   Skipping 'cordova-plugin-whitelist' for android
   ```
   
   ### Command or Code
   
   NA
   
   
   ### Environment, Platform, Device
   
   MacOS, Android, Emulator Pixel 3 API 29 Android 10.0
   
   
   ### Version information
   
   Cordova: Cordova CLI V10.0.0, Cordova Platforms ios, android, Cordova 
Plugins:
   ```
       "cordova-android": "^10.1.1",
       "cordova-ios": "^6.2.0",
       "cordova-plugin-device": "^2.0.3",
       "cordova-plugin-firebasex": "^13.0.1",
       "cordova-plugin-inappbrowser": "^5.0.0",
       "cordova-plugin-nativestorage": "^2.3.2",
       "cordova-plugin-splashscreen": "^6.0.0",
       "cordova-plugin-statusbar": "^2.4.3",
       "cordova-plugin-whitelist": "^1.3.5",
       "cordova-universal-links-plugin": 
"github:veloce/cordova-universal-links-plugin
   ```
   Other Frameworks: NA
   Operating System, Android Studio, Xcode etc.
   ```
   Android Studio Arctic Fox | 2020.3.1 Patch 3
   Build #AI-203.7717.56.2031.7784292, built on October 1, 2021
   Runtime version: 11.0.10+0-b96-7281165 x86_64
   VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
   macOS 11.6
   GC: G1 Young Generation, G1 Old Generation
   Memory: 2048M
   Cores: 4
   Registry: external.system.auto.import.disabled=true
   Non-Bundled Plugins: org.jetbrains.kotlin
   ```
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to