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(5mo ago)1.9k100.6M↓27.9%105[8 issues](https://github.com/nelmio/NelmioCorsBundle/issues)[1 PRs](https://github.com/nelmio/NelmioCorsBundle/pulls)20MITPHPCI failing

Since Jan 7Pushed 5mo 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 2d 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

71

—

ExcellentBetter than 100% of packages

Maintenance70

Regular maintenance activity

Popularity78

Solid adoption and visibility

Community51

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

172d ago

Major Versions

1.5.6 → 2.0.02019-11-12

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/183678?v=4)[Jordi Boggiano](/maintainers/Seldaek)[@Seldaek](https://github.com/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

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M738](/packages/sylius-sylius)[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.4k67.4M263](/packages/nelmio-api-doc-bundle)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69735.1M159](/packages/algolia-algoliasearch-client-php)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

515100.5k3](/packages/web-auth-webauthn-framework)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)

PHPackages © 2026

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