Skip to content

Instantly share code, notes, and snippets.

Avatar

Femtedele fifths

View GitHub Profile
@fifths
fifths / CorsMiddleware.php
Last active Jun 6, 2018
Lumen with CORS requests
View CorsMiddleware.php
<?php
namespace App\Http\Middleware;
use Symfony\Component\HttpFoundation\Response;
class CorsMiddleware
{
public function handle($request, \Closure $next)
{
You can’t perform that action at this time.