Any website allowed to call with the visitor's sign-in
A wildcard origin, origin: true, or the request's own Origin echoed back, together with credentials.
Why it matters
A browser blocks a cross-site call until the server says that origin may make it. When a front end on another port is blocked, the quickest fix is to allow every origin and turn credentials on so cookies are sent; agents do exactly that.
With the caller's origin echoed back and credentials on, a page on any site can call your API as your signed-in visitor and read the answer: their data, and anything the API can do for them.
Example
-app.use(cors({ origin: "https://app.example.com", credentials: true }));
+app.use(cors({ origin: true, credentials: true }));
What it detects
- origin: true or the request's Origin header used as Access-Control-Allow-Origin, with credentials on in the same file (Fix now), unless the origin is checked against a list first.
- A wildcard origin with credentials (Fix soon), and FastAPI or Flask setups that allow every origin with credentials.
- At least one of the two lines must be added by the change.
What to do when it fires
Allow a fixed list of your own site addresses, read from a setting, whenever credentials are on.