cors icon indicating copy to clipboard operation
cors copied to clipboard

feat: handle Chrome CORS preflight private network header

Open randing89 opened this issue 2 years ago • 0 comments

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

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.

This fixes #290 and #236

randing89 avatar Nov 06 '23 10:11 randing89