no-cors-wildcard-with-credentials
Review wildcard CORS origins combined with an explicit credentials opt-in.
Why
Browsers do not expose credentialed cross-origin responses when Access-Control-Allow-Origin is '*'. Credentialless requests can still use a wildcard even when Access-Control-Allow-Credentials is emitted, so review the intended caller contract.
Fix
Use a trusted explicit origin for credentialed callers, or omit the credentials opt-in for a credentialless wildcard endpoint.
Examples
import cors from "cors";cors({ origin: "*", credentials: true });import cors from "cors";cors({ origin: "https://app.example.com", credentials: true });