mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
add cors plugin
This commit is contained in:
parent
03f10d384f
commit
6ae6e9f958
@ -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": "*"
|
||||
|
||||
@ -209,6 +209,7 @@ return [
|
||||
*/
|
||||
Anomaly\Streams\Platform\StreamsServiceProvider::class,
|
||||
Sentry\Laravel\ServiceProvider::class,
|
||||
\Fruitcake\Cors\CorsServiceProvider::class
|
||||
],
|
||||
|
||||
/*
|
||||
|
||||
@ -90,7 +90,9 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'middleware' => [],
|
||||
'middleware' => [
|
||||
\Fruitcake\Cors\HandleCors::class, # this line
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
||||
Loading…
Reference in New Issue
Block a user