Skip to content

Commit a17a5ae

Browse files
authored
skip when running tests
1 parent 31e630b commit a17a5ae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Http/Middleware/PreventRegularBrowserAccess.php

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ class PreventRegularBrowserAccess
99
{
1010
public function handle(Request $request, Closure $next)
1111
{
12+
if (app()->runningUnitTests()) {
13+
return $next($request);
14+
}
15+
1216
// Explicitly skip for the cookie-setting route
1317
if ($request->path() === '_native/api/cookie') {
1418
return $next($request);

0 commit comments

Comments
 (0)