Skip to content

bug: config.xml being re-sorted, breaking STA correct #4456

@marfarma

Description

@marfarma

Type: bug

Platform: ios 9 webview

This is the current state of the section:

    <config-file platform="ios" target="*-Info.plist" parent="NSAppTransportSecurity">
      <dict>
       <key>NSExceptionDomains</key>
       <dict>
        <key>devcdb</key>
      <key>localhost</key>
      <dict>
        <key>NSIncludesSubdomains</key>
        <key>NSExceptionAllowsInsecureHTTPLoads</key>
        <true/>
        <true/>
      </dict>
      <dict>
        <key>NSIncludesSubdomains</key>
        <key>NSExceptionAllowsInsecureHTTPLoads</key>
        <true/>
        <true/>
      </dict>
    </dict>
  </dict>
</config-file>

This was the original contents before the build:

<config-file platform="ios" target="*-Info.plist" parent="NSAppTransportSecurity">
  <dict>
    <key>NSExceptionDomains</key>
    <dict>
      <key>devcdb</key>
      <dict>
        <key>NSIncludesSubdomains</key>
        <true/>
        <key>NSExceptionAllowsInsecureHTTPLoads</key>
        <true/>
      </dict>
      <key>localhost</key>
      <dict>
        <key>NSIncludesSubdomains</key>
        <true/>
        <key>NSExceptionAllowsInsecureHTTPLoads</key>
        <true/>
      </dict>
    </dict>
  </dict>
</config-file>

This behavior was not seen a few days ago, so likely occurred in a recent upgrade. I use an after_prepare hook to update my plist with this code -- which worked very well until this point.

Is this a bug? Or is it a feature and I'll have to find another method to update my plist with this information?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions