Skip to content

Commit b957ef8

Browse files
developStormasbiin
andauthored
feat: use host without port for RP ID (#339)
"The origin's port is unrestricted" https://www.w3.org/TR/webauthn-2/#rp-id Co-authored-by: Alexis Saettler <[email protected]>
1 parent 276b493 commit b957ef8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Services/Webauthn/PublicKeyCredentialCreationOptionsFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ private function createRpEntity(): PublicKeyCredentialRpEntity
5454
{
5555
return new PublicKeyCredentialRpEntity(
5656
$this->config->get('app.name', 'Laravel'),
57-
Request::getHttpHost(),
57+
Request::getHost(),
5858
$this->config->get('webauthn.icon')
5959
);
6060
}

0 commit comments

Comments
 (0)