WICG / private-network-access

https://wicg.github.io/private-network-access/
Other
52 stars 21 forks source link

Call out that PNA preflights leak the request Origin as a trade-off #124

Closed johnathan79717 closed 5 months ago

johnathan79717 commented 6 months ago

Subresource fetch requests in no-cors mode doesn't come with an Origin header, but the preflight requests we send for PNA include the "Origin" header. This is so that websites can use it to gate access only to websites they trust even though it leaks some information. We think the trade-off is worth it because in order to exploit this leak, you have to be on the private network of the user. We should probably still call this out in the spec.