Skip to content

Instantly share code, notes, and snippets.

@claudiainbytes
Created September 14, 2017 21:35
Show Gist options
  • Save claudiainbytes/ab1db4fa0b07345580cf9286e7bcd783 to your computer and use it in GitHub Desktop.
Save claudiainbytes/ab1db4fa0b07345580cf9286e7bcd783 to your computer and use it in GitHub Desktop.
public function handle($request, Closure $next)
{
return $next($request)
->header('Access-Control-Allow-Origin', '*')
->header('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment