Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
fix: Fixed NAME error.
Browse files Browse the repository at this point in the history
  • Loading branch information
medz committed Mar 15, 2018
1 parent a139c11 commit af66735
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ There are some configurations that you can write directly in the `.env` file:
| Name | Desc |
|----|----|
| CORS_ALLOW_CREDENTIAILS | `Access-Control-Allow-Credentials` |
| CORS_ACCESS_CONYROL_MAX_AGE | `Access-Control-Max-Age` |
| CORS_ACCESS_CONTROL_MAX_AGE | `Access-Control-Max-Age` |
| CORS_LARAVEL_ALLOW_ROUTE_PERFIX | Prefix settings for allowing cross domains. |
| CORS_LARABEL_ROUTE_GROUP_MODE | Whether routing group matching is enabled, if open, only the startup routing group allows setting cross domain information. |
| CORS_LARAVEL_ROUTE_GROUP_MODE | Whether routing group matching is enabled, if open, only the startup routing group allows setting cross domain information. |

#### Route Group Mode

Expand Down
4 changes: 2 additions & 2 deletions config/cors.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
'expose-headers' => [],
'origins' => ['*'], // ex: http://localhost
'methods' => ['*'], // ex: GET, POST, PUT, PATCH, DELETE
'max-age' => env('CORS_ACCESS_CONYROL_MAX_AGE', 0),
'max-age' => env('CORS_ACCESS_CONTROL_MAX_AGE', 0),
'laravel' => [
'allow-route-perfix' => env('CORS_LARAVEL_ALLOW_ROUTE_PERFIX', '*'), // The perfix is using \Illumante\Http\Request::is method. 👉
'route-group-mode' => env('CORS_LARABEL_ROUTE_GROUP_MODE', false),
'route-group-mode' => env('CORS_LARAVEL_ROUTE_GROUP_MODE', false),
],
];

0 comments on commit af66735

Please sign in to comment.