Include CORS headers when there is a Server defined, instead of requiring there to be more than 1
This commit is contained in:
parent
d85a02be63
commit
6691b5fb52
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue