server/src/app/Http/Middleware/VerifyCsrfToken.php
changeset 28 b0b56e0f8c7f
parent 2 00e2916104fe
child 139 8d688175513a
--- a/server/src/app/Http/Middleware/VerifyCsrfToken.php	Fri Jan 15 15:27:56 2016 +0100
+++ b/server/src/app/Http/Middleware/VerifyCsrfToken.php	Fri Jan 15 15:35:00 2016 +0100
@@ -19,4 +19,13 @@
     {
         return parent::handle($request, $next);
     }
+
+    /**
+     * The URIs that should be excluded from CSRF verification.
+     *
+     * @var array
+     */
+    protected $except = [
+        'api/*',
+    ];
 }