Skip to content

Commit

Permalink
Solved Issue#56. Credits to @MehulBawadia.
Browse files Browse the repository at this point in the history
  • Loading branch information
softon committed Jun 26, 2020
1 parent d9207b4 commit 61c0961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/middleware.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class VerifyCsrfMiddleware extends \Illuminate\Foundation\Http\Middleware\Verify
public function handle($request, Closure $next)
{
if ($this->isReading($request) || $this->excludedRoutes($request) || $this->tokensMatch($request))
if ($this->isReading($request) || $this->excludedRoutes($request) || $this->tokensMatch($request) || $this->runningUnitTests())
{
return $this->addCookieToResponse($request, $next($request));
}
Expand Down

0 comments on commit 61c0961

Please sign in to comment.