server/src/app/Http/Kernel.php
changeset 537 d2e6ee099125
parent 280 59a2c10ac9b8
--- a/server/src/app/Http/Kernel.php	Sat Jun 10 22:43:58 2017 +0200
+++ b/server/src/app/Http/Kernel.php	Mon Jun 12 14:53:59 2017 +0200
@@ -49,6 +49,7 @@
         'guest' => \CorpusParole\Http\Middleware\RedirectIfAuthenticated::class,
         'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
         'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
+        'cors' => \Barryvdh\Cors\HandleCors::class
     ];
     // /**
     //  * The application's global HTTP middleware stack.