@fastify/cors
11.4.3 · 13 Nov 2026MIT11M / weekRepositoryHomepagenpmAtom feed
Your version
In short
1 fixed
Release note
What's Changed
Normalize dynamic origin wildcard arrays
Behavior note
An origin array containing '*' is now treated as a wildcard also when it comes from a dynamic resolver (async or callback origin function) or from a route-level config.cors. These cases now respond with Access-Control-Allow-Origin: *, as the static origin: ['*'] option already did. Previously the header was omitted.
If a dynamic origin list of yours contains '*' unintentionally, remove it before upgrading.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.