PHPackages                             drupal/cors - 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. drupal/cors

ActiveDrupal-module

drupal/cors
===========

Enable cors options in Drupal 8

151547[2 issues](https://github.com/dmouse/cors-drupal8/issues)1PHP

Since Feb 9Pushed 11y ago3 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (1)

Drupal 8 CORS

Thanks to the issue (#2303673)\[\] in Drupal 8 now we have a new powerfull component, (StackPHP)\[\] is a middleware for the HttpKernel class, this middleware provide a decorator thas can intercept the request after to touch the Drupal Core.

How to use
----------

[](#how-to-use)

This modulo don't provide UI, only need you turn on.

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

[](#installation)

```
$ cd modules/
$ git clone git@github.com:dmouse/cors-drupal8.git cors
$ drush en cors
```

Middleware enabling cross-origin resource sharing for your http-{foundation,kernel} using application.

Cross-origin resource sharing (CORS) is a mechanism that allows a web page to make XMLHttpRequests to another domain. Such "cross-domain" requests would otherwise be forbidden by web browsers, per the same origin security policy.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.3% 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.

### Community

Maintainers

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

---

Top Contributors

[![dmouse](https://avatars.githubusercontent.com/u/198571?v=4)](https://github.com/dmouse "dmouse (14 commits)")[![jmolivas](https://avatars.githubusercontent.com/u/366275?v=4)](https://github.com/jmolivas "jmolivas (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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