hongyejia/laravel-cors is a Laravel package for laravel cors middleware.
It currently has 0 GitHub stars and 24 downloads on Packagist (latest version 1.0.2).
Install it with composer require hongyejia/laravel-cors.
Discover more Laravel packages by hongyejia
or browse all Laravel packages to compare alternatives.
Last updated
laravel Cors middleware.
$ composer require hongyejia/laravel-cors -vvv
config/app.php 注册 ServiceProvider'providers' => [
// ...
Hongyejia\LaravelCors\ServiceProvider::class,
],
php artisan vendor:publish --provider="Hongyejia\LaravelCors\ServiceProvider"
config/cors.php 中对应的参数即可。1.在app/Http/kernel.php 加入 中间件
protected $middleware = [
// ....
\Hongyejia\LaravelCors\AllowCrossDomain:class
]
You can contribute in one of three ways:
The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.
MIT