From 6691b5fb52b09f4dfcedd4b7bac47d421c991b1e Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 29 Oct 2018 12:50:50 -0400 Subject: [PATCH] Include CORS headers when there is a Server defined, instead of requiring there to be more than 1 --- web/includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/includes/functions.php b/web/includes/functions.php index 29f627722..7fe174470 100644 --- a/web/includes/functions.php +++ b/web/includes/functions.php @@ -41,7 +41,7 @@ function CORSHeaders() { # The following is left for future reference/use. $valid = false; $Servers = Server::find(); - if ( sizeof($Servers) <= 1 ) { + if ( sizeof($Servers) < 1 ) { # Only need CORSHeaders in the event that there are multiple servers in use. # ICON: Might not be true. multi-port? return;