In cors.ts, isAllowedCorsOrigin and isAllowedRequestOrigin use if (!input) return true. This treats an empty string (from an empty Origin header) the same as undefined (no Origin header), allowing clients that send Origin: with empty value to bypass all CORS validation.
In cors.ts, isAllowedCorsOrigin and isAllowedRequestOrigin use
if (!input) return true. This treats an empty string (from an empty Origin header) the same as undefined (no Origin header), allowing clients that send Origin: with empty value to bypass all CORS validation.