Remove old Cors middleware

This commit is contained in:
James Brooks
2015-05-20 08:08:53 +01:00
parent a119ed14b2
commit a1ab59a15a
3 changed files with 0 additions and 39 deletions

View File

@@ -37,8 +37,6 @@ class Admin
}
/**
* Run the cors middleware.
*
* We're verifying that the current user is logged in to Cachet and is an admin level.
*
* @param \Illuminate\Http\Request $request

View File

@@ -1,36 +0,0 @@
<?php
/*
* This file is part of Cachet.
*
* (c) James Brooks <james@cachethq.io>
* (c) Joseph Cohen <joseph.cohen@dinkbit.com>
* (c) Graham Campbell <graham@mineuk.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace CachetHQ\Cachet\Http\Middleware;
use Closure;
class Cors
{
/**
* Run the cors middleware.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
*
* @return mixed
*/
public function handle($request, Closure $next)
{
$response = $next($request);
$response->headers->set('Access-Control-Allow-Origin', '*');
return $response;
}
}