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:
parent
c788dfcb8b
commit
6a690dbe7e
|
|
@ -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'],
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue