Skip to content

Instantly share code, notes, and snippets.

@protozoo
protozoo / CORS.php
Last active August 29, 2015 14:24 — forked from fhferreira/CORS.php
Laravel 5 Middleware to enable CORS requests #cors #crossdomain
<?php namespace App\Http\Middleware;
use Closure;
use Illuminate\Contracts\Routing\Middleware;
use Illuminate\Http\Response;
class CORS implements Middleware {
/**
* Handle an incoming request.

dummy 3