<?php

namespace App\Http\Middleware;

use Closure;

class Cors
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
     /*
    public function handle($request, Closure $next)
    {
        return $next($request)
            // ->header('Access-Control-Allow-Origin', '*')
            // ->header('Access-Control-Allow-Methods', ['GET', 'PUT', 'POST', 'DELETE', 'OPTIONS'])
            ->header('Access-Control-Allow-Credentials', 'false')
            ->header('Access-Control-Allow-Headers', 'Content-Type, Authorization, X-Requested-With');

    }*/

    public function handle($request, Closure $next)
    {
	$response = $next($request);
	return $response;
        //return $response->header('Content-Type', 'application/json');

    }
}
