🙂 İNSANLARIN EN HAYIRLISI INSANLARA FAYDALI OLANDIR 🙂

Ramazan HABER / FLUTTER / ios da http webview çalışması için domain NSURLErrorDomain code=-1022

1-) FLUTTER - ios da http webview çalışması için domain NSURLErrorDomain code=-1022

 

ios -> runner -> info.plist

 

<key>NSAppTransportSecurity</key>

    <dict>

        <key>NSAllowsArbitraryLoads</key>

        <true/>

    </dict>

 

    <key>NSAppTransportSecurity</key>

    <dict>

        <key>NSExceptionDomains</key>

        <dict>

            <key>rmoswebpos.com</key>

            <dict>

                <!--Include to allow subdomains-->

                <key>NSIncludesSubdomains</key>

                <true/>

                <!--Include to allow HTTP requests-->

                <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>

                <true/>

                <!--Include to specify minimum TLS version-->

                <key>NSTemporaryExceptionMinimumTLSVersion</key>

                <string>TLSv1.1</string>

            </dict>

        </dict>

    </dict>

 

 

VEYA

 

<key>NSAppTransportSecurity</key>

    <dict>

        <key>NSAllowsArbitraryLoads</key>

        <true/>

    </dict>

 

</dict>

</plist>

 

kaynak : https://stackoverflow.com/questions/47865216/nsurlconnection-finished-with-error-code-1022

 

 

 2022 Şubat 07 Pazartesi
 373