Browse Source

Add addHttpCookie to VerifyCsrfToken

Barry vd. Heuvel 5 years ago
parent
commit
76af90b50c
1 changed files with 7 additions and 0 deletions
  1. 7 0
      app/Http/Middleware/VerifyCsrfToken.php

+ 7 - 0
app/Http/Middleware/VerifyCsrfToken.php

@@ -14,4 +14,11 @@ class VerifyCsrfToken extends Middleware
     protected $except = [
         //
     ];
+    
+    /**
+     * Indicates whether the XSRF-TOKEN cookie should be set on the response.
+     *
+     * @var bool
+     */
+    protected $addHttpCookie = true;
 }