Skip to content

Commit

Permalink
allow str::is
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Mar 12, 2020
1 parent 70450c3 commit d8de232
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Http/Middleware/EnsureFrontendRequestsAreStateful.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ public static function fromFrontend($request)

$referer = Str::replaceFirst('http://', '', $referer);

return Str::is(
config('airlock.stateful', []),
$referer
);
return Str::startsWith($referer, config('airlock.stateful', [])) ||
Str::is(config('airlock.stateful', []), $referer);
}
}

0 comments on commit d8de232

Please sign in to comment.