Labrador HTTP CORS

GitHub release GitHub license

A PHP 7+ library intended to provide spec-compliant CORS middleware for projects running on Amp's http-server. Though this library lives under the Labrador namespace it has only one dependency, amphp/http-server, and does not depend on any other Labrador packages.


Composer is the only supported method for installing Labrador packages.

composer require cspray/labrador-http-cors


Labrador packages have thorough documentation in-repo in the docs/ directory. You can also check out the documentation online at


All Labrador packages adhere to the rules laid out in the Labrador Governance repo.