Back to Cordova

2021 06 17

slack-digest/2021-06-17.md

latest1.5 KB
Original Source

Cordova Slack Digest

Thu, 17 Jun 2021 08:27:20 GMT

User count: 4527

Join the conversation at slack.cordova.io

Channel #cordova-android (1 messages)


Wed, 16 Jun 2021 09:21:23 GMT

@iamtarun1993 says

I'm working on a Cordova app. These app generating config.xml file for android in this matter.

<widget
  &lt;access origin="*" /&gt;
  
  &lt;feature name="GooglePlus"&gt;
    &lt;param name="android-package" value="nl.xservices.plugins.GooglePlus"/&gt;
    &lt;param name="onload" value="true"/&gt;
  &lt;/feature&gt;

  &lt;feature name="InAppBrowser"&gt;
    &lt;param name="android-package" value="org.apache.cordova.inappbrowser.InAppBrowser"/&gt;
  &lt;/feature&gt;

  &lt;feature name="CDVOrientation"&gt;
    &lt;param name="android-package" value="cordova.plugins.screenorientation.CDVOrientation"/&gt;
  &lt;/feature&gt;

  &lt;feature name="ImagePicker"&gt;
    &lt;param name="android-package" value="com.synconset.ImagePicker"/&gt;
  &lt;/feature&gt;

  
&lt;/widget&gt;```
Now from here, we can see access origin is open for all. But I want to put different domain whitelisting for different
plugin.
Ex:
1. `<https://accounts.google.com/*>` for GooglePlus
2. `<https://mydomain.com>` for the in-app browser.
How to achieve this?