Skip to content

Commit

Permalink
fix: CORS preflight request fails to find route for ajax-only definit…
Browse files Browse the repository at this point in the history
  • Loading branch information
ikkez committed Nov 4, 2022
1 parent 7edda0e commit bad015a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions base.php
Original file line number Diff line number Diff line change
Expand Up @@ -1720,6 +1720,7 @@ function run() {
$route=NULL;
$ptr=$this->hive['CLI']?self::REQ_CLI:$this->hive['AJAX']+1;
if (isset($routes[$ptr][$this->hive['VERB']]) ||
($preflight && isset($routes[$ptr])) ||
isset($routes[$ptr=0]))
$route=$routes[$ptr];
if (!$route)
Expand Down

0 comments on commit bad015a

Please sign in to comment.