dizox
4 years ago
17 changed files with 189 additions and 128 deletions
-
75app/Listeners/BusinessUpdateListener.php
-
1app/Models/Business.php
-
2app/Models/User.php
-
1app/Providers/EventServiceProvider.php
-
8app/Providers/RouteServiceProvider.php
-
7bootstrap/app.php
-
69composer.lock
-
1config/app.php
-
18config/cors.php
-
34config/cors.php.bcp
-
40config/cors.php.laravel
-
14config/cors.php.lumen
-
2database/migrations/2020_08_18_085017_fingerprints.php
-
13database/seeds/BusinessSeeder.php
-
2database/seeds/UserSeeder.php
-
26docker-compose.yml
-
4resources/lang/fa/notification.php
@ -0,0 +1,34 @@ |
|||
<?php |
|||
|
|||
return [ |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Cross-Origin Resource Sharing (CORS) Configuration |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| Here you may configure your settings for cross-origin resource sharing |
|||
| or "CORS". This determines what cross-origin operations may execute |
|||
| in web browsers. You are free to adjust these settings as needed. |
|||
| |
|||
| To learn more: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS |
|||
| |
|||
*/ |
|||
|
|||
'paths' => ['*', 'sanctum/csrf-cookie'], |
|||
|
|||
'allowed_methods' => ['*'], |
|||
|
|||
'allowed_origins' => ['*'], |
|||
|
|||
'allowed_origins_patterns' => ['*'], |
|||
|
|||
'allowed_headers' => ['*'], |
|||
|
|||
'exposed_headers' => [], |
|||
|
|||
'max_age' => 0, |
|||
|
|||
'supports_credentials' => false, |
|||
|
|||
]; |
@ -1,59 +1,19 @@ |
|||
<?php |
|||
return [ |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Laravel CORS Options |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| The allowed_methods and allowed_headers options are case-insensitive. |
|||
| |
|||
| You don't need to provide both allowed_origins and allowed_origins_patterns. |
|||
| If one of the strings passed matches, it is considered a valid origin. |
|||
| |
|||
| If ['*'] is provided to allowed_methods, allowed_origins or allowed_headers |
|||
| all methods / origins / headers are allowed. |
|||
| |
|||
*/ |
|||
|
|||
/* |
|||
* You can enable CORS for 1 or multiple paths. |
|||
* Example: ['api/*'] |
|||
*/ |
|||
'paths' => ['/*'], |
|||
|
|||
/* |
|||
* Matches the request method. `['*']` allows all methods. |
|||
*/ |
|||
'allowed_methods' => ['*'], |
|||
|
|||
/* |
|||
* Matches the request origin. `['*']` allows all origins. Wildcards can be used, eg `*.mydomain.com` |
|||
*/ |
|||
'allowed_origins' => ['*'], |
|||
|
|||
/* |
|||
* Patterns that can be used with `preg_match` to match the origin. |
|||
*/ |
|||
'allowedOriginsPatterns' => ['Content-Type', 'X-Requested-With'], |
|||
|
|||
/* |
|||
* Sets the Access-Control-Allow-Headers response header. `['*']` allows all headers. |
|||
*/ |
|||
'allowed_headers' => ['*'], |
|||
|
|||
/* |
|||
* Sets the Access-Control-Expose-Headers response header with these headers. |
|||
*/ |
|||
'exposed_headers' => [], |
|||
|
|||
/* |
|||
* Sets the Access-Control-Max-Age response header when > 0. |
|||
*/ |
|||
'max_age' => 0, |
|||
|
|||
/* |
|||
* Sets the Access-Control-Allow-Credentials header. |
|||
*/ |
|||
'supports_credentials' => false, |
|||
]; |
Write
Preview
Loading…
Cancel
Save
Reference in new issue