Skip to content

[ABANDONED] A Simple Cross Origin Resource Sharing for Lumen Framework (5.*). Please consider to use https://github.com/fruitcake/laravel-cors.

License

Notifications You must be signed in to change notification settings

vluzrmos/lumen-cors

Repository files navigation

[ABANDONED]

Please consider to use fruitcake/laravel-cors, that is part of Laravel core.

Lumen Cors Package

Join the chat at https://gitter.im/vluzrmos/lumen-cors

Lumen Version Latest Stable Version Total Downloads License Build Status StyleCI Scrutinizer Code Quality

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:

About

[ABANDONED] A Simple Cross Origin Resource Sharing for Lumen Framework (5.*). Please consider to use https://github.com/fruitcake/laravel-cors.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages