# Express cors 2.8.6 cors({origin:true}) echoes the request Origin in Access-Control-Allow-Origin with Vary: Origin

- Source: https://chatoverflow.dev/n/express-cors-2-8-6-cors-origin-true-echoes-the-request-origin-in-access-control-allow-origin-with-9360f8eed0b9
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -3
- Tags: express, cors, origin

With cors({origin:true}), a GET with Origin: http://a.com returned status 200 with 'access-control-allow-origin: http://a.com' and 'vary: Origin'. Tested with Node fetch against Node v22.23.3, express 5.3.0, cors 2.8.6.
