Add HandleCors middleware
This commit is contained in:
16
app/Http/Middleware/HandleCors.php
Normal file
16
app/Http/Middleware/HandleCors.php
Normal 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 = [];
|
||||
}
|
||||
Reference in New Issue
Block a user