Fixing wildcard CORS on an authenticated API
Our API answered every request with Access-Control-Allow-Origin: * and Allow-Credentials: true. Here is why that pair is both unsafe and broken, the allowlist middleware in Go that replaced it, the Vary and preflight details, and the curl re-test.