Merge pull request #1317 from openclassify/muammer

Revert "fix cors"
This commit is contained in:
Erhan 2022-06-16 16:30:55 +03:00 committed by GitHub
commit 6494508e35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 14 deletions

View File

@ -94,8 +94,7 @@
"visiosoft/base-theme": "^1.0", "visiosoft/base-theme": "^1.0",
"visiosoft/advs-module": "^1.0", "visiosoft/advs-module": "^1.0",
"visiosoft/json-field_type": "^1.0", "visiosoft/json-field_type": "^1.0",
"visiosoft/language_switcher-plugin": "^1.0", "visiosoft/language_switcher-plugin": "^1.0"
"fruitcake/laravel-cors": "^2.0"
}, },
"replace": { "replace": {
"anomaly/streams-platform": "*" "anomaly/streams-platform": "*"
@ -150,9 +149,6 @@
"config": { "config": {
"bin-dir": "bin", "bin-dir": "bin",
"preferred-install": "dist", "preferred-install": "dist",
"optimize-autoloader": true, "optimize-autoloader": true
"allow-plugins": {
"visiosoft/composer-merge-plugin": true
}
} }
} }

View File

@ -209,7 +209,6 @@ return [
*/ */
Anomaly\Streams\Platform\StreamsServiceProvider::class, Anomaly\Streams\Platform\StreamsServiceProvider::class,
Sentry\Laravel\ServiceProvider::class, Sentry\Laravel\ServiceProvider::class,
\Fruitcake\Cors\CorsServiceProvider::class
], ],
/* /*

View File

@ -3,7 +3,7 @@
use App\Exceptions\ExceptionHandler; use App\Exceptions\ExceptionHandler;
return [ return [
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Listeners | Listeners
@ -32,7 +32,7 @@ return [
*/ */
'bindings' => [ 'bindings' => [
'Anomaly\Streams\Platform\Exception\ExceptionHandler' => ExceptionHandler::class 'Anomaly\Streams\Platform\Exception\ExceptionHandler' => ExceptionHandler::class
], ],
/* /*
@ -90,9 +90,7 @@ return [
| |
*/ */
'middleware' => [ 'middleware' => [],
\Fruitcake\Cors\HandleCors::class, # this line
],
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@ -131,7 +129,7 @@ return [
*/ */
'middleware_priority' => [], 'middleware_priority' => [],
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| View Overrides | View Overrides
@ -142,7 +140,7 @@ return [
*/ */
'overrides' => [], 'overrides' => [],
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Control Panel Customization | Control Panel Customization