diff --git a/web/includes/functions.php b/web/includes/functions.php index 744cf0bdb..e66139d7c 100644 --- a/web/includes/functions.php +++ b/web/includes/functions.php @@ -51,10 +51,11 @@ function CORSHeaders() { $valid = true; header('Access-Control-Allow-Origin: ' . $_SERVER['HTTP_ORIGIN']); header('Access-Control-Allow-Headers: x-requested-with,x-request'); + break; } } - if ( ! $valid ) { - Warning( $_SERVER['HTTP_ORIGIN'] . ' is not found in servers list.' ); + if ( !$valid ) { + Warning($_SERVER['HTTP_ORIGIN'] . ' is not found in servers list.'); } } }