Registry / networking / asm89-stack-cors

asm89-stack-cors

JSON →
library2.4.0phppackagistunverified

Cross-origin resource sharing library and stack middleware

composer require asm89/stack-cors
INSTALL
IMPORT
SIG · ASM89-STACK-CORS
A
asm89-stack-cors
networkingphpv2.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CorsService
use Asm89\Stack\CorsService;

Create CORS service and add headers to response

use Asm89\Stack\CorsService; $options = ['allowedOrigins' => ['*']]; $cors = new CorsService($options); $response = $cors->addActualRequestHeaders($response, $request);
Debug
Known issues
breakingVersion 2.x requires PHP 7.4+; version 1.x supports PHP 7.0+.
fix
Choose the correct version for your PHP version.
affects: >=2.0.0
Upgrade
Version history
2.4.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
30 hits · last 30 days
node
26
OpenAI (training)
2
Meta
1
Resources
asm89-stack-cors — pip install asm89-stack-cors · libregistry