Skip to content

CORS Access-Control-Allow-Private-Network #21553

@t0rr3sp3dr0

Description

@t0rr3sp3dr0

Title: CORS Access-Control-Allow-Private-Network

Description:

Add a new allow_private_network option to config.route.v3.CorsPolicy that will make Envoy respond requests with the header Access-Control-Allow-Private-Network: true when the header Access-Control-Request-Private-Network: true is present on OPTIONS requests.

Chrome is deprecating direct access to private network endpoints from public websites as part of the Private Network Access (PNA) specification.

Chrome will start sending a CORS preflight request ahead of any private network request for a subresource, which asks for explicit permission from the target server. This preflight request will carry a new header, Access-Control-Request-Private-Network: true, and the response to it must carry a corresponding header, Access-Control-Allow-Private-Network: true.

Relevant Links:

https://developer.chrome.com/blog/private-network-access-preflight/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions