The browser can't know what's an external or internal address (not that even we humans have a meaningful definition, not really a compatible concept with current networking)
This is one of the reasons network level controls are problematic and the solution is being reinvented as "zero trust networking".