Skip to content

Software Development at Program Tom LTD

Place for coding, programming, development and software in general.

Menu
  • Blog
  • PDF Booklets
  • Dev Utils & Content
  • Java Spring Boot Or Web Apps
  • English
    • български
    • English
    • Español
    • Português
    • हिन्दी
    • Русский
    • Deutsch
    • Français
    • Italiano
    • العربية
  • About Us
Menu
How to Allow Network Requests in a Flutter Web App while coding?

How to Allow Network Requests in a Flutter Web App while coding?

Posted on January 31, 2025 by Toma Velev

If you are coding or debugging Flutter Web App and you get a ClientException: XMLHttpRequest error, uri=https:/ you may need to allow Network Requests.

1. Allow network requests in the browser

When running your Flutter Web app, you need to allow network requests in the browser. Here are the steps for different browsers:

Experimental Web Platform features

  • Google Chrome:
    • Open Google Chrome and navigate to chrome://flags/.
    • Search for “Experimental Web Platform features” and enable it.
    • Restart Google Chrome.
  • Microsoft Edge:
    • Open Microsoft Edge and navigate to edge://flags/.
    • Search for “Experimental Web Platform features” and enable it.
    • Restart Microsoft Edge.

2. Run your Flutter Web app

Start your Web app as usual. When the app starts, it will fail, because it is started on localhost, but, your server may be somewhere on your network, and even somewhere remote. Don’t close it – Just minimize it. After that – open new tab in the normal browser session and paste the URL from the debug tab. It should work as expected.

3. Disable the Flag

When you are finished Debugging – don’t forget to disable the flag again! Otherwise you will leave your browser to insecure state!

I”ve used this while developing a Proof of Concept of Web Desktop: https://programtom.com/dev/product/flutter-web-desktop-user-interface-proof-of-concept/

  • Feature Flags – Enable Functionality from the BackEnd
  • Integrating xAI Grok API with Spring Boot
  • How to Progresively Integrate AI
  • What is an AI Agent
  • Flutter image scaling

Categories

  • Apps (22)
  • ChatGPT (23)
  • Choosing a Framework (38)
  • Flutter (256)
  • Graphical User Interface (14)
  • Marketing (116)
  • Software Development (281)
  • Spring (44)
  • StartUp (22)
  • Uncategorized (14)
  • Uncategorized (4)
  • Vaadin (14)

Tags

Algorithms (9) crypto (29) flutterdev (39) General (86) Java (7) QR & Bar Codes (3) Software Dev Choices (33) Spring Boot (1) standards (1) Theme (3) User Authentication & Authorization (9) User Experience (10) Utilities (19) WordPress (11)

Product categories

  • All Technologies (84)
    • Flutter Apps (24)
    • GPT (4)
    • Java (38)
    • Native Android (3)
    • PHP (9)
    • Spring (Boot) / Quarkus (35)
    • Utils (15)
    • Vaadin 24+ (27)
    • Vaadin 8 (1)
  • Apps (18)
    • Employees DB (1)
    • Notes (6)
    • Personal Budget (1)
    • Recipes Book (1)
    • Stuff Organizer (1)
    • To-Do (2)
  • PDF Books (3)
  • Source Code Generators (8)

Recent Posts

  • Feature Flags – Enable Functionality from the BackEnd
  • Integrating xAI Grok API with Spring Boot
  • How to Progresively Integrate AI
  • What is an AI Agent
  • Flutter image scaling

Post Categories

  • Apps (22)
  • ChatGPT (23)
  • Choosing a Framework (38)
  • Flutter (256)
  • Graphical User Interface (14)
  • Marketing (116)
  • Software Development (281)
  • Spring (44)
  • StartUp (22)
  • Uncategorized (14)
  • Uncategorized (4)
  • Vaadin (14)