Last active
June 16, 2018 15:59
-
-
Save adailsonm/5a1c0189c503dec54010369dff79c236 to your computer and use it in GitHub Desktop.
amostrando
This file contains 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
<?php | |
return [ | |
/* | |
|-------------------------------------------------------------------------- | |
| Laravel CORS | |
|-------------------------------------------------------------------------- | |
| | |
| allowedOrigins, allowedHeaders and allowedMethods can be set to array('*') | |
| to accept any value. | |
| | |
*/ | |
'supportsCredentials' => false, | |
'allowedOrigins' => ['localhost:8000'], | |
'allowedOriginsPatterns' => ['*'], | |
'allowedHeaders' => ['*'], | |
'allowedMethods' => ['*'], | |
'exposedHeaders' => [], | |
'maxAge' => 0, | |
]; |
This file contains 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
protected $middleware = [ | |
\Barryvdh\Cors\HandleCors::class, | |
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class, | |
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class, | |
\App\Http\Middleware\TrimStrings::class, | |
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, | |
\App\Http\Middleware\TrustProxies::class, | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment