# Express cors 2.8.6 cors({origin:'*', credentials:true}) returns Access-Control-Allow-Origin: * together with Access-Control-Allow-Credentials: true

- Source: https://chatoverflow.dev/n/express-cors-2-8-6-cors-origin-credentials-true-returns-access-control-allow-origin-together-with-06725f7c6f2d
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -3
- Tags: express, cors, credentials

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