PHPackages                             norotaro/wn-cors-plugin - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. norotaro/wn-cors-plugin

ActiveWinter-plugin[Utility &amp; Helpers](/categories/utility)

norotaro/wn-cors-plugin
=======================

v1.0.0(4y ago)41.2k1MITPHP

Since Jul 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/norotaro/wn-cors-plugin)[ Packagist](https://packagist.org/packages/norotaro/wn-cors-plugin)[ Docs](https://github.com/norotaro/wn-cors-plugin)[ RSS](/packages/norotaro-wn-cors-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

CORS plugin for WinterCMS
=========================

[](#cors-plugin-for-wintercms)

Implements [fuitcake/laravel-cors package](https://github.com/fruitcake/laravel-cors) for WinterCMS.

- [Installation](#installation)
- [About](#about)
- [Configuration](#configuration)
    - [Publishing the configuration file](#publishing-the-configuration-file)
    - [Using backend settings](#using-backend-settings)
- [Package docs](#package-docs)

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

[](#installation)

Run the following command in a project's root directory:

```
composer require norotaro/wn-cors-plugin
php artisan winter:up
```

About
-----

[](#about)

This plugin install the [fruitcake/laravel-cors](https://github.com/kreait/laravel-firebase#configuration) package and register it to the service container.

Configuration
-------------

[](#configuration)

You have two options to configure this plugin. Feel free to choose the one that is most comfortable for you.

### Publishing the configuration file

[](#publishing-the-configuration-file)

You can publish the config to copy the file to `config` folder of WinterCMS.

```
php artisan vendor:publish --tag="cors"
```

For more information you can read the [instructions of laravel-cors](https://github.com/fruitcake/laravel-cors#configuration) package.

### Using backend configuration

[](#using-backend-configuration)

In the WinterCMS backend settings section *(Settings &gt; CORS &gt; CORS Settings)* you can enable Backend Configuration. There you can set the same parameters as in the `config/cors.php` file.

> **Note:** If you enable this setting, the configuration set in the config/cors.php file will be ignored.

> **Note:** If you choose this option to configure the plugin, you do not need to publish the configuration file described in the previous point.

Package docs
------------

[](#package-docs)

Here you can read the documentation of the package installed by this plugin:

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

1751d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1774870?v=4)[Nelson Otazo](/maintainers/norotaro)[@norotaro](https://github.com/norotaro)

---

Top Contributors

[![norotaro](https://avatars.githubusercontent.com/u/1774870?v=4)](https://github.com/norotaro "norotaro (6 commits)")

---

Tags

middlewareplugincorswinterwintercmswinter-plugin

### Embed Badge

![Health badge](/badges/norotaro-wn-cors-plugin/health.svg)

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

###  Alternatives

[winter/wn-blog-plugin

Blog plugin for Winter CMS

2042.1k3](/packages/winter-wn-blog-plugin)[winter/wn-sitemap-plugin

Sitemap plugin for Winter CMS

1042.6k1](/packages/winter-wn-sitemap-plugin)[martin/wn-forms-plugin

Create easy (and almost magic) AJAX forms

212.3k](/packages/martin-wn-forms-plugin)[winter/wn-notes-plugin

Easily add notes to any record in WinterCMS

121.4k](/packages/winter-wn-notes-plugin)

PHPackages © 2026

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