Config change to allow cors
This commit is contained in:
12
app/Http/Kernel.php
Normal file
12
app/Http/Kernel.php
Normal file
@@ -0,0 +1,12 @@
|
||||
// In file: app/Http/Kernel.php
|
||||
protected $middlewareGroups = [
|
||||
'web' => [
|
||||
// ...
|
||||
],
|
||||
|
||||
'api' => [
|
||||
\Illuminate\Http\Middleware\HandleCors::class, // <-- ENSURE THIS LINE IS UNCOMMENTED
|
||||
'throttle:api',
|
||||
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user