CORS for api (#7292)

* Added CORS support to API

* Changed order so CORS will still work if throttle hit

* Added APP_CORS_ALLOWED_ORIGINS env option

* Fixed typo

* Clarified header comments

* More clarification

* DIsable CORS allowed origins by default to replicate existing behavior

* Change variable name to be clearer
This commit is contained in:
snipe
2019-07-26 12:38:31 -07:00
committed by GitHub
parent ab86e42b2e
commit 3dc2cc9f22
5 changed files with 166 additions and 1 deletions
+1
View File
@@ -44,6 +44,7 @@ class Kernel extends HttpKernel
],
'api' => [
\Barryvdh\Cors\HandleCors::class,
'throttle:120,1',
'auth:api',
],