cordova-plugin-transport-security icon indicating copy to clipboard operation
cordova-plugin-transport-security copied to clipboard

Seems to ignore what I configure in plugin.xml

Open pauloya opened this issue 8 years ago • 3 comments

My config.xml contains these:

    <content src="https://myserver.com/page" />
    <access origin="*" />
    <allow-navigation href="*" />
    <access launch-external="yes" origin="tel:*" />
    <access launch-external="yes" origin="mail:*" />

I'm using Cordova 6.1.1. I didn't change the plugin.xml file for this plugin.

My info.plist comes out like this:

 <key>NSAppTransportSecurity</key>
    <dict>
      <key>NSAllowsArbitraryLoads</key>
      <true/>
      <key>NSExceptionDomains</key>
      <dict>
        <key>myserver.com</key>
        <dict/>
      </dict>
    </dict>

So it looks like this plugin is not affecting the info.plist. Also I see that Cordova has an ios_parser.js that seems to set these keys. Is this plugin still usable with Cordova 6? How can I get rid of the NSExceptionDomains that Cordova seems to create on my domain?

pauloya avatar Nov 07 '16 15:11 pauloya

I reproduced this issue with cordova-cli 6.5.0 and cordova-ios 4.5.3 The domains I set using NSExceptionDomains in the plugin.xml file are not in the -info.plist file in XCode

karlachavez avatar Jan 23 '18 01:01 karlachavez

Same issue here. It appears this plugin no longer works.

keithdmoore avatar Dec 05 '18 19:12 keithdmoore

If it help someone to read this : Here is a plugin that works well : https://github.com/knight9999/cordovax-edit-ats I juste change the type of hook from after_platform_add to before_compile

Stephane84 avatar Mar 18 '21 15:03 Stephane84