Created
September 14, 2017 21:35
-
-
Save claudiainbytes/ab1db4fa0b07345580cf9286e7bcd783 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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