Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/Http/Middleware/PreventRegularBrowserAccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ class PreventRegularBrowserAccess
{
public function handle(Request $request, Closure $next)
{
if (app()->runningUnitTests()) {
return $next($request);
}

// Explicitly skip for the cookie-setting route
if ($request->path() === '_native/api/cookie') {
return $next($request);
Expand Down
Loading