Skip to content

Commit e554921

Browse files
committed
Fix for #361
1 parent c36a05a commit e554921

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

api.php

+1
Original file line numberDiff line numberDiff line change
@@ -2662,6 +2662,7 @@ protected function allowOrigin($origin,$allowOrigins) {
26622662
$found = false;
26632663
foreach (explode(',',$allowOrigins) as $o) {
26642664
if (preg_match('/^'.str_replace('\*','.*',preg_quote(strtolower(trim($o)))).'$/',$origin)) {
2665+
$found = true;
26652666
if (isset($_SERVER['REQUEST_METHOD'])) {
26662667
header('Access-Control-Allow-Origin: '.$origin);
26672668
}

0 commit comments

Comments
 (0)