# What changed in @fastify/cors

> 7 changes in @fastify/cors 9 to 11 from its official release notes, upgrade guides and advisories: 1 breaking, 1 security, 1 new APIs and options. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/npm/@fastify/cors/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @fastify/cors 11

### Breaking changes

- The default methods changed to CORS-safelisted methods; specify methods explicitly to resume the previous behavior. (11.0.0) — [release notes](https://github.com/fastify/fastify-cors/releases/tag/v11.0.0)

### Security

- Fixes a security issue identified in GHSA-8c3j-mm64-257c. (11.4.0) — [release notes](https://github.com/fastify/fastify-cors/releases/tag/v11.4.0)

### New APIs and options

- Route-level CORS configuration is now supported, allowing CORS settings to be specified for individual routes. (11.2.0) — [release notes](https://github.com/fastify/fastify-cors/releases/tag/v11.2.0)

### Fixes and other changes

- An origin array containing '*' from a dynamic resolver or route-level config.cors now responds with Access-Control-Allow-Origin: *, matching the static origin: ['*'] option. (11.4.3) — [release notes](https://github.com/fastify/fastify-cors/releases/tag/v11.4.3)
- Origin resolution is skipped when a route disables CORS. (11.4.2) — [release notes](https://github.com/fastify/fastify-cors/releases/tag/v11.4.2)
- The vary parser preserves header tokens with whitespace preceding commas. (11.4.1) — [release notes](https://github.com/fastify/fastify-cors/releases/tag/v11.4.1)

## @fastify/cors 9

### Behavior and default changes

- The Vary header is added only when the origin option is non-static. (9.0.0) — [release notes](https://github.com/fastify/fastify-cors/releases/tag/v9.0.0)
