Merge pull request #1320 from openclassify/vedatakdogan

add cors plugin
This commit is contained in:
Fatih Alp 2022-06-25 23:29:13 +03:00 committed by GitHub
commit 721da8e1be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -94,7 +94,8 @@
"visiosoft/base-theme": "^1.0",
"visiosoft/advs-module": "^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": {
"anomaly/streams-platform": "*"

View File

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

View File

@ -90,7 +90,9 @@ return [
|
*/
'middleware' => [],
'middleware' => [
\Fruitcake\Cors\HandleCors::class, # this line
],
/*
|--------------------------------------------------------------------------