Include CORS headers when there is a Server defined, instead of requiring there to be more than 1

This commit is contained in:
Isaac Connor 2018-10-29 12:50:50 -04:00
parent d85a02be63
commit 6691b5fb52
1 changed files with 1 additions and 1 deletions

View File

@ -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;