Private network access checks for navigation requests: warning-only mode
- Category
- Security
- Type
- New or changed feature
- Status
- In development (Chrome In development)
- Intent stage
- None
Summary
Before a website A navigates to another site B in the user's private network, this feature does the following: 1. Checks whether the request has been initiated from a secure context 2. Sends a preflight request, and checks whether B responds with a header that allows private network access. There are already features for subresources and workers, but this one is for navigation requests specifically. The above checks are made to protect the user's private network. Since this feature is the "warning-only" mode, we do not fail the requests if any of the checks fails. Instead, a warning will be shown in the DevTools, to help developers prepare for the coming enforcement.
Motivation
To prevent malicious websites from pivoting through the user agent's network position to attack devices and services which reasonably assumed they were unreachable from the Internet at large, by virtue of residing on the user’s local intranet or the user's machine.
Standards & signals
- Specification: https://wicg.github.io/private-network-access
- Firefox: Positive
- Safari: Support — Safari disagrees with the spec name and header names, but still overall positive.
- Web developers: Mixed signals — Anecdotal evidence so far suggests that most web developers are OK with this new requirement, though some do not control the target endpoints and would be negatively impacted.
- Tracking bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1524350
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=fetch%2Fprivate-network-access
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Private%20network%20access%20checks%20for%20navigation%20requests%3A%20warning-only%20mode
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Private%20network%20access%20checks%20for%20navigation%20requests%3A%20warning-only%20mode
- Baseline status: https://webstatus.dev/?q=Private%20network%20access%20checks%20for%20navigation%20requests%3A%20warning-only%20mode
Docs: https://docs.google.com/document/d/1QyFqHCgZLmEfy0wbgXNgce9zKpZVaqSpQY3JleFWrk0/edit?usp=sharing
Explainers: https://github.com/WICG/private-network-access/blob/main/explainer.md