title: flutter web: how to connect to a rest API or localhost
body: <p>My code:</p>
  
  <pre><code>void checkState() async {
      print("CTC");
      var url = "http://localhost:3000";
      try {
         var respX = await http.get(url);
      } catch (err) {
        print("response Arrived: $err");
     }
    }
  </code></pre>
  
  <p>But it is not possible:
  <a href="https://github.com/flutter/flutter/issues/43015#issuecomment-543835637" rel="nofollow noreferrer">https://github.com/flutter/flutter/issues/43015#issuecomment-543835637</a></p>
  
  <p>I am using google chrome for debugging. simply pasting <a href="http://localhost:3000" rel="nofollow noreferrer">http://localhost:3000</a> allows me to connect to the URL from the same browser.</p>
  
  <p>Is there any way to do it?</p>