PHPackages                             nelmio/cors-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. nelmio/cors-bundle

ActiveSymfony-bundle[API Development](/categories/api)

nelmio/cors-bundle
==================

Adds CORS (Cross-Origin Resource Sharing) headers support in your Symfony application

2.6.1(4mo ago)1.9k94.4M—1.9%105[8 issues](https://github.com/nelmio/NelmioCorsBundle/issues)[1 PRs](https://github.com/nelmio/NelmioCorsBundle/pulls)20MITPHPCI failing

Since Jan 7Pushed 4mo ago15 watchersCompare

[ Source](https://github.com/nelmio/NelmioCorsBundle)[ Packagist](https://packagist.org/packages/nelmio/cors-bundle)[ RSS](/packages/nelmio-cors-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (29)Used By (20)

NelmioCorsBundle
================

[](#nelmiocorsbundle)

About
-----

[](#about)

The NelmioCorsBundle allows you to send [Cross-Origin Resource Sharing](http://enable-cors.org/)headers with ACL-style per-URL configuration.

Features
--------

[](#features)

- Handles CORS preflight OPTIONS requests
- Adds CORS headers to your responses
- Configured at the PHP/application level. This is convenient but it also means that any request serving static files and not going through Symfony will not have the CORS headers added, so if you need to serve CORS for static files you probably should rather configure these headers in your web server

Installation
------------

[](#installation)

Require the `nelmio/cors-bundle` package in your composer.json and update your dependencies:

```
composer require nelmio/cors-bundle
```

The bundle should be automatically enabled by [Symfony Flex](https://symfony.com/doc/current/setup/flex.html). If you don't use Flex, you'll need to enable it manually as explained [in the docs](https://symfony.com/bundles/NelmioCorsBundle/current/index.html).

Usage
-----

[](#usage)

See [the documentation](https://symfony.com/bundles/NelmioCorsBundle/current/index.html) for usage instructions.

License
-------

[](#license)

Released under the MIT License, see LICENSE.

###  Health Score

72

—

ExcellentBetter than 100% of packages

Maintenance77

Regular maintenance activity

Popularity78

Solid adoption and visibility

Community50

Growing community involvement

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 66.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~176 days

Recently: every ~265 days

Total

28

Last Release

126d ago

Major Versions

1.5.6 → 2.0.02019-11-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/b69782e1d7f426ef78f61d159c466a536372eff931f13981ac578fa3f4649352?d=identicon)[Seldaek](/maintainers/Seldaek)

---

Top Contributors

[![Seldaek](https://avatars.githubusercontent.com/u/183678?v=4)](https://github.com/Seldaek "Seldaek (127 commits)")[![dunglas](https://avatars.githubusercontent.com/u/57224?v=4)](https://github.com/dunglas "dunglas (11 commits)")[![GwendolenLynch](https://avatars.githubusercontent.com/u/1427081?v=4)](https://github.com/GwendolenLynch "GwendolenLynch (7 commits)")[![Chris53897](https://avatars.githubusercontent.com/u/7104259?v=4)](https://github.com/Chris53897 "Chris53897 (4 commits)")[![nocive](https://avatars.githubusercontent.com/u/651121?v=4)](https://github.com/nocive "nocive (3 commits)")[![javiereguiluz](https://avatars.githubusercontent.com/u/73419?v=4)](https://github.com/javiereguiluz "javiereguiluz (3 commits)")[![tacman](https://avatars.githubusercontent.com/u/619585?v=4)](https://github.com/tacman "tacman (3 commits)")[![Oliboy50](https://avatars.githubusercontent.com/u/2571084?v=4)](https://github.com/Oliboy50 "Oliboy50 (3 commits)")[![leofeyer](https://avatars.githubusercontent.com/u/1192057?v=4)](https://github.com/leofeyer "leofeyer (2 commits)")[![vincentchalamon](https://avatars.githubusercontent.com/u/407859?v=4)](https://github.com/vincentchalamon "vincentchalamon (2 commits)")[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (2 commits)")[![mkopinsky](https://avatars.githubusercontent.com/u/591435?v=4)](https://github.com/mkopinsky "mkopinsky (1 commits)")[![mluex](https://avatars.githubusercontent.com/u/20678805?v=4)](https://github.com/mluex "mluex (1 commits)")[![mweimerskirch](https://avatars.githubusercontent.com/u/362092?v=4)](https://github.com/mweimerskirch "mweimerskirch (1 commits)")[![OskarStark](https://avatars.githubusercontent.com/u/995707?v=4)](https://github.com/OskarStark "OskarStark (1 commits)")[![prosalov](https://avatars.githubusercontent.com/u/5410552?v=4)](https://github.com/prosalov "prosalov (1 commits)")[![simonharris](https://avatars.githubusercontent.com/u/385725?v=4)](https://github.com/simonharris "simonharris (1 commits)")[![SimonSimCity](https://avatars.githubusercontent.com/u/392589?v=4)](https://github.com/SimonSimCity "SimonSimCity (1 commits)")[![smatyas](https://avatars.githubusercontent.com/u/534550?v=4)](https://github.com/smatyas "smatyas (1 commits)")[![sroze](https://avatars.githubusercontent.com/u/804625?v=4)](https://github.com/sroze "sroze (1 commits)")

---

Tags

bundlecorscors-requestcross-origin-resource-sharingphpsymfonysymfony-bundleapicorscrossdomain

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/nelmio-cors-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/nelmio-cors-bundle/health.svg)](https://phpackages.com/packages/nelmio-cors-bundle)
```

###  Alternatives

[algolia/algoliasearch-client-php

API powering the features of Algolia.

69433.0M114](/packages/algolia-algoliasearch-client-php)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[agungsugiarto/codeigniter4-cors

Send CORS Headers in a CodeIgniter 4 application.

6524.6k2](/packages/agungsugiarto-codeigniter4-cors)[webit/w-firma-api

wFirma.pl API

1820.2k](/packages/webit-w-firma-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
