feat: add WebAuthn related-origins endpoint for cross-domain passkeys

Allows passkeys registered with RP ID rspace.online to work on
rcal.online subdomains via the .well-known/webauthn route.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-03-21 21:19:55 +00:00
parent c788dfcb8b
commit 6a690dbe7e
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
import { NextResponse } from 'next/server';
/**
* Related Origin Requests for WebAuthn
* Allows passkeys registered with RP ID "rspace.online" to be used on this domain
* See: https://passkeys.dev/docs/advanced/related-origins/
*/
export async function GET() {
return NextResponse.json({
origins: ['https://rspace.online'],
});
}