vluzrmos / lumen-cors
A Simple Lumen CORS.
Installs: 149 802
Dependents: 0
Suggesters: 0
Security: 0
Stars: 46
Watchers: 4
Forks: 10
Open Issues: 1
Type:package
Requires
- php: >=5.5.9
- illuminate/http: ~5.0
- illuminate/support: ~5.0
Requires (Dev)
- fabpot/php-cs-fixer: ~2.0
- laravel/lumen: ~5.0
- phpunit/phpunit: ~4.0
README
Please consider to use fruitcake/laravel-cors, that is part of Laravel core.
Lumen Cors Package
A Simple Cross Origin Resource Sharing for Lumen Framework.
Note: That should works fine on Laravel Framework too, but the tests are performed to Lumen.
Install
composer require "vluzrmos/lumen-cors=2.1.*"
Configure
On boostrap/app.php
register the middleware:
$app->middleware([ //..., 'Vluzrmos\LumenCors\CorsMiddleware' ]);
You are free to use ::class notation.
And that is it!
Considerations
That package stands to be free of configurations, then if you want a more configurable package please consider to see one of these: