laravel Access to HMLHttpRequest from origin has been blocked by CORS policy: No Access-Control-Allow-Origin
publicfunctionhandle($request,Closure$next){return$next($request)->header('Access-Control-Allow-Origin','*')->header('Access-Control-Allow-Methods','GET, POST, PUT, DELETE, OPTIONS');}