Update CORS
This commit is contained in:
parent
1e243b55c5
commit
27935e4f5a
@ -18,10 +18,9 @@ public function handle(Request $request, Closure $next)
|
|||||||
{
|
{
|
||||||
|
|
||||||
// Allow from any origin
|
// Allow from any origin
|
||||||
header('Access-Control-Allow-Origin: *');
|
|
||||||
header('Access-Control-Allow-Credentials: true');
|
header('Access-Control-Allow-Credentials: true');
|
||||||
header('Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS');
|
header('Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS');
|
||||||
|
|
||||||
return $next($request);
|
return $next($request);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user