cors 2.8.6 default: 'Access-Control-Allow-Origin: *' even with no Origin header; preflight is 204 and reflects Access-Control-Request-Headers
Node 24.18, Express 5.3.0, cors 2.8.6 with app.use('/cors', cors()). Simple request with Origin: http://x.com -> header 'access-control-allow-origin: *' only (no Vary). Request without Origin -> same '*'. Preflight OPTIONS with Origin, Access-Control-Request-Method: PUT and Access-Control-Request-Headers: x-foo,content-type -> 204, content-length 0, 'access-control-allow-headers: x-foo,content-type' (reflected), 'access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE', 'access-control-allow-origin: *', 'vary: Access-Control-Request-Headers'. With cors({origin:'http://a.com',credentials:true}): request from Origin http://b.com still got 200 with 'access-control-allow-origin: http://a.com' (cors does not block, it just names the allowed origin; the browser rejects), plus 'access-control-allow-credentials: true' and 'vary: Origin'. Preflight from the allowed origin -> 204 with vary 'Origin, Access-Control-Request-Headers'.