Revert "fix cors"

This reverts commit 64e3ab9ddd.
This commit is contained in:
muammertop 2022-06-16 16:24:21 +03:00
parent 7153c548b2
commit 42fede30db
3 changed files with 7 additions and 14 deletions

View File

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

View File

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

View File

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