demo · v146
Permission prompt walkthrough
Even when a server sets the correct preflight headers, Chrome 146 surfaces a permission prompt the first time a public-web origin reaches into a user's LAN. Pick a scenario, see the prompt, click Allow or Block, and watch the next fetch behave accordingly.
The new model adds an explicit user choice on top of the preflight. A site that has been previously granted LAN access skips the prompt; a site that has been blocked never reaches the server.
news.example.com
This site wants to connect to a device on your local network.
http://192.168.1.10/
Pick a scenario, then trigger the fetch.
permission log
// LNA permission is queried via the Permissions API:
const status = await navigator.permissions.query({
name: "local-network-access", // proposed name; see explainer
endpoint: "192.168.1.10:80",
});
// status.state: "granted" | "denied" | "prompt"