I need to work with HTTP requests, I’m having trou...
# compose-ios
c
I need to work with HTTP requests, I’m having trouble with ATS, the following are solutions I found
Copy code
macOS {
                infoPlist {
                    extraKeysRawXml = """
                        <key>NSAppTransportSecurity</key>
                            <dict>
                                <key>NSAllowsArbitraryLoads</key>
                                <true/>
                            </dict>
                    """.trimIndent()
                }
            }
and
Copy code
apple {
    iosApp {
        productName = "MultiFactor"

        sceneDelegateClass = "SceneDelegate"
        launchStoryboard = "LaunchScreen"
        mainStoryboard = "LaunchScreen"

        //productInfo["NSAppTransportSecurity"] = mapOf("NSAllowsArbitraryLoads" to true)
        //buildSettings.OTHER_LDFLAGS("")

        dependencies {
            implementation(project(":mobileapp"))
        }
    }
}
But these do not seem to apply anymore (in my case I needed to do this for my iOS app), is there a way to do it?