<?php
/*
 本代码由 口号帮 创建
 创建时间 2019-05-08 16:22:09
 技术支持 口号帮 
 严禁反编译、逆向等任何形式的侵权行为，违者将追究法律责任
*/

namespace App\Http\Middleware;use Closure;class Cors{public function handle($request,Closure $next){$response=$next($request);$response->headers->add(['Access-Control-Allow-Origin'=>'*','Access-Control-Allow-Headers'=>'Origin, Content-Type, Cookie, Accept, Authentication,Source, Channel, Device, System, Version, Push, PageId,type','Access-Control-Allow-Methods'=>'GET, POST, PATCH, PUT, OPTIONS','Access-Control-Allow-Credentials'=>'false','Access-Control-Max-Age'=>3600,]);return $response;}}
?>