How to Disable the Google Chrome ‘Block insecure private network requests’ Flag

The Local Network Blockade

Google Chrome takes security very seriously, and one of its initiatives involves protecting your local network (like your home router or a smart home device) from malicious public websites. Chrome uses a feature governed by the “Block insecure private network requests” flag. When this is active, if you visit a standard public website on the internet (e.g., http://public-site.com), Chrome will actively block that website from attempting to communicate with devices on your private local network (e.g., sending commands to 192.168.1.100).

This is a fantastic security measure for average users, preventing malicious ads from hijacking home routers. However, it can be a nightmare for web developers. If you are building an IoT dashboard, testing a web app that needs to interface with a local Raspberry Pi, or running a legitimate enterprise application that requires cross-origin communication between a public domain and an internal company IP address, Chrome will aggressively block the connection and throw CORS (Cross-Origin Resource Sharing) errors in the console. To allow your development environment to function, you must disable this strict blocking policy.

How to Disable the Private Network Request Block

You can allow public websites to talk to local IP addresses via the experimental flags menu.

  1. Open Google Chrome.
  2. Click inside the main address bar at the top of the browser.
  3. Type chrome://flags and press Enter.
  4. A page titled “Experiments” will load.
  5. In the search bar at the top, type Block insecure private network requests.
  6. The specific flag will appear highlighted in yellow. Next to it is a dropdown menu.
  7. Change the dropdown menu setting from “Default” to Disabled.
  8. Click the blue Relaunch button at the bottom of the screen.

Upon restarting, Chrome will relax its cross-origin security rules regarding local IPs. Your public web application will now be able to successfully send HTTP requests to your local devices, allowing you to continue your development and testing without interference.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.