Skip to content

kpod13/laravel-corsmaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CORSmaker middleware for Laravel 5

See also

About

Features

  • Adds CORS headers to responses
  • Supports multirule configuration

Installation

Install package

composer require kpod13/laravel-corsmaker

Add ServiceProvider into app

Add Kpod13\CorsMaker\ServiceProvider::class into providers in config/app.php. Clear cache php artisan config:cache

Setup middleware as global

protected $middleware = [
    CorsMakerHandler::class
];

Install default config

php artisan vendor:publish --provider="Kpod13\CorsMaker\ServiceProvider"

Configuration

See example in config/corsmaker.php

Testing

Install dependencies

composer install --dev

Run tests

./vendor/bin/phpunit

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages