/tools/cors helps debug "why does my fetch fail in the browser but work in curl" by reproducing exactly what a browser does:
Origin, Access-Control-Request-Method and Access-Control-Request-Headers.Access-Control-Allow-Origin, -Allow-Credentials, -Allow-Methods, -Allow-Headers, -Expose-Headers, -Max-Age, and Vary.Diagnostic checks flag the common mistakes:
Access-Control-Allow-Origin returned at all).Access-Control-Allow-Origin: * combined with Allow-Credentials: true — invalid per spec, browsers will reject the response.Useful when integrating a third-party API, configuring a new endpoint, or chasing the maddening "request blocked by CORS policy" error.