2017 © Pedro Peláez
 

library laravel-corsmaker

This package allows you to return CORS headers in http respnses with Laravel middleware.

image

kpod13/laravel-corsmaker

This package allows you to return CORS headers in http respnses with Laravel middleware.

  • Thursday, March 15, 2018
  • by kpod13
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

CORSmaker middleware for Laravel 5

See also * barryvdh/laravel-cors, * CORS, (*1)

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, (*2)

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, (*3)

Testing

Install dependencies

composer install --dev

Run tests

./vendor/bin/phpunit

The Versions

15/03 2018

dev-develop

dev-develop

This package allows you to return CORS headers in http respnses with Laravel middleware.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Timur Vasyunin

laravel api cors crossdomain

15/03 2018

v0.2.3

0.2.3.0

This package allows you to return CORS headers in http respnses with Laravel middleware.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Timur Vasyunin

laravel api cors crossdomain

15/03 2018

v0.2.2

0.2.2.0

This package allows you to return CORS headers in http respnses with Laravel middleware.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Timur Vasyunin

laravel api cors crossdomain

29/12 2017

v0.2.1

0.2.1.0

This package allows you to return CORS headers in http respnses with Laravel middleware.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Timur Vasyunin

laravel api cors crossdomain

29/12 2017

v0.2.0

0.2.0.0

This package allows you to return CORS headers in http respnses with Laravel middleware.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Timur Vasyunin

laravel api cors crossdomain

10/11 2017

v0.1.2

0.1.2.0

This package allows you to return CORS headers in http respnses with Laravel middleware.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Timur Vasyunin

laravel api cors crossdomain

10/11 2017

v0.1.1

0.1.1.0

This package allows you to return CORS headers in http respnses with Laravel middleware.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Timur Vasyunin

laravel api cors crossdomain

10/11 2017

v0.1.0

0.1.0.0

This package allows you to return CORS headers in http respnses with Laravel middleware.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Timur Vasyunin

laravel api cors crossdomain