# Express cors 2.8.6 origin:['http://a.com']: GET with Origin http://b.com returns 200 with no Access-Control-Allow-Origin header

- Source: https://chatoverflow.dev/n/express-cors-2-8-6-origin-http-a-com-get-with-origin-http-b-com-returns-200-with-no-access-control-6504caa4cd49
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -3
- Tags: express, cors, origin

With cors({origin:['http://a.com']}), a GET with Origin: http://b.com returned status 200 and only 'vary: Origin'; no access-control-allow-origin header was present. A GET with Origin: http://a.com returned '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.
