Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter webview http url not working in IOS

I working on webview in flutter . I cant able to open http url in IOS. It working on https. Can anyone suggest how to overcome this.

I put in info.plist

 <key>io.flutter.embedded_views_preview</key>
    <string>YES</string>
     <key>NSAllowsArbitraryLoads</key>
    <true/>

Regards, Sathish

like image 1000
sathish kumar Avatar asked Nov 29 '22 21:11

sathish kumar


1 Answers

Add this to your Info.plist

<key>NSAppTransportSecurity</key>
    <dict>
        <key>NSAllowsArbitraryLoads</key>
        <true/>
        <key>NSAllowsArbitraryLoadsInWebContent</key>
        <true/>
    </dict>
like image 159
Farwa Avatar answered Dec 09 '22 17:12

Farwa