Add HandleCors middleware

This commit is contained in:
Barry vd. Heuvel
2019-12-24 22:26:06 +01:00
parent db940594ad
commit bee0e8c94c
3 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
<?php
namespace App\Http\Middleware;
use Fruitcake\Cors\HandleCors as Middleware;
class HandleCors extends Middleware
{
/**
* The paths to enable CORS on.
* Example: ['api/*']
*
* @var array
*/
protected $paths = [];
}