NSAppTransportSecurity incorrectly generated

In player settings I’ve checked “Allow downloads over HTTP (nonsecure)” and when I build the app I can see following in Info.plist:

    <key>NSAppTransportSecurity</key>
    <dict>
      <key>NSAllowsArbitraryLoads</key>
      <string>True</string>
    </dict>

But this is incorrect and it’s not working:

Error Domain=NSURLErrorDomain
Code=-1022 “The resource could not be
loaded because the App Transport
Security policy requires the use of a
secure connection.”
UserInfo={NSLocalizedDescription=The
resource could not be loaded because
the App Transport Security policy
requires the use of a secure
connection.

The NSAllowsArbitraryLoads property is a bool, not string. Changing the previous code to:

<key>NSAppTransportSecurity</key>
<dict>
  <key>NSAllowsArbitraryLoads</key>
  <true/>
</dict>

works and the error disappears.

However, each time I hit “Build And Run” from Unity it replaces Info.plist and I have to manually fix it each time. It’s supper annoying. How can I fix this permanently?

I was using 2019.3.1f1 and few versions before. Now, in 2019.3.2f1 this bug is finally fixed!