PHPackages                             yireo/magento2-corshack - 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. yireo/magento2-corshack

ActiveMagento2-module[API Development](/categories/api)

yireo/magento2-corshack
=======================

Magento 2 module to add some hacks to GraphQL API

1.0.6(5y ago)1243[2 issues](https://github.com/yireo/magento2-corshack/issues)OSL-3.0PHPPHP &gt;=7.2.0

Since Feb 24Pushed 2y ago3 watchersCompare

[ Source](https://github.com/yireo/magento2-corshack)[ Packagist](https://packagist.org/packages/yireo/magento2-corshack)[ Docs](https://github.com/yireo-training/magento2-corshack)[ RSS](/packages/yireo-magento2-corshack/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (7)Used By (0)

Yireo CorsHack
==============

[](#yireo-corshack)

The new Magento 2 GraphQL system could be used with GraphQL clients (like Apollo or even Axios) to fetch data from Magento. Most of these clients use an HTTP request OPTIONS to see if CORS restrictions apply. This module adds an OPTIONS check to the GraphQL API. Also, this module adds Cross Origin headers (currently hard-coded to `http://localhost:3000`).

### Installation

[](#installation)

```
composer require yireo-training/magento2-corshack
./bin/magento module:enable Yireo_CorsHack

```

### Configuration

[](#configuration)

Navigate to **Advanced &gt; Yireo CorsHack** and add the schema + domain URL to the **Origin Domain** option.

By default, a wildcard (`*`) is configured allowing all origin domains.

Examples of values that can be configured:

- -
-
-
-

In general the configuration value includes schema and domain name. It also includes the port number if it is not standard.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.6% 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 ~130 days

Total

5

Last Release

2110d ago

PHP version history (2 changes)1.0.1PHP &gt;=7.0.0

1.0.6PHP &gt;=7.2.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1373981?v=4)[Yireo](/maintainers/yireo)[@yireo](https://github.com/yireo)

---

Top Contributors

[![jissereitsma](https://avatars.githubusercontent.com/u/7670482?v=4)](https://github.com/jissereitsma "jissereitsma (40 commits)")[![elzekool](https://avatars.githubusercontent.com/u/2158053?v=4)](https://github.com/elzekool "elzekool (1 commits)")

---

Tags

magentocomposer-installer

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yireo-magento2-corshack/health.svg)

```
[![Health](https://phpackages.com/badges/yireo-magento2-corshack/health.svg)](https://phpackages.com/packages/yireo-magento2-corshack)
```

###  Alternatives

[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8044.5M33](/packages/smile-elasticsuite)[m2epro/magento2-extension

M2E Pro is a Magento trusted (TM), award-winning extension, which allows merchants of all sizes to fully integrate Magento based system(s) into eBay/Amazon/Walmart platforms.

70642.0k](/packages/m2epro-magento2-extension)[yireo/magento2-graph-ql-rate-limiting

Magento 2 module to add rate limiting to GraphQL resources

1419.8k](/packages/yireo-magento2-graph-ql-rate-limiting)[tinify/magento2

Make your web shop faster by compressing your JPEG and PNG images. This plugin automatically optimizes your images by integrating with the popular image compression services TinyJPG and TinyPNG.

4345.8k](/packages/tinify-magento2)[sehrling/elasticsuite-ghost-cleaner

Magento 2 module to delete ghost indices automatically for the Smile Elasticsuite module

1789.0k](/packages/sehrling-elasticsuite-ghost-cleaner)[yireo-training/magento2-corshack

Magento 2 module to add some hacks to GraphQL API

122.3k](/packages/yireo-training-magento2-corshack)

PHPackages © 2026

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