Allow HTTP Localhost on MacOS Tahoe

Since MacOS Tahoe 26.5, it’s no longer possible to use http://localhost connections for things like WebView UI in UXP or you’ll get this error:

Failed to load resource: The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.

Build mode works fine since the plugin:// protocol is used, but this isn’t practical in dev mode with hot-reloading.

Note this is with requiredPermissions.launchProcess including "http" and network.domains including "http://localhost:8082" in the manifest.

There is a workaround to change from localhost to home IP http://127.0.0.1 for dev testing, but this isn’t ideal.

The UXP security settings need to be updated on Mac to allow HTTP on Localhost for dev mode or at least make it opt-in in the manifest.

It looks like simply adding NSAllowsLocalNetworking in the Info.plist could be a sufficient fix:

2 Likes