Browse Source

Merge pull request #4403 from El-Virus/master

Fix "The operation is insecure." when trying to register fido2 device.
Patrick Schult 3 years ago
parent
commit
11700d7ecb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      data/web/inc/prerequisites.inc.php

+ 1 - 1
data/web/inc/prerequisites.inc.php

@@ -67,7 +67,7 @@ $tfa = new RobThree\Auth\TwoFactorAuth($OTP_LABEL, 6, 30, 'sha1', $qrprovider);
 
 
 // FIDO2
 // FIDO2
 $formats = $GLOBALS['FIDO2_FORMATS'];
 $formats = $GLOBALS['FIDO2_FORMATS'];
-$WebAuthn = new lbuchs\WebAuthn\WebAuthn('WebAuthn Library', $_SERVER['HTTP_HOST'], $formats);
+$WebAuthn = new lbuchs\WebAuthn\WebAuthn('WebAuthn Library', $_SERVER['SERVER_NAME'], $formats);
 // only include root ca's when needed
 // only include root ca's when needed
 if (getenv('WEBAUTHN_ONLY_TRUSTED_VENDORS') == 'y') $WebAuthn->addRootCertificates($_SERVER['DOCUMENT_ROOT'] . '/inc/lib/WebAuthn/rootCertificates');
 if (getenv('WEBAUTHN_ONLY_TRUSTED_VENDORS') == 'y') $WebAuthn->addRootCertificates($_SERVER['DOCUMENT_ROOT'] . '/inc/lib/WebAuthn/rootCertificates');