Skip to content

fix: add WebAuthn permissions to Permissions-Policy header#2482

Merged
Larkooo merged 1 commit intomainfrom
fix/passkey-permissions-policy
Mar 10, 2026
Merged

fix: add WebAuthn permissions to Permissions-Policy header#2482
Larkooo merged 1 commit intomainfrom
fix/passkey-permissions-policy

Conversation

@Larkooo
Copy link
Contributor

@Larkooo Larkooo commented Mar 10, 2026

Summary

  • Adds publickey-credentials-create=* and publickey-credentials-get=* to the Permissions-Policy response header in the keychain's vercel.json
  • Fixes passkey authentication/registration failing when the keychain is embedded as an iframe, because the browser was blocking WebAuthn API calls due to missing permission directives

Test plan

  • Deploy to preview and verify passkeys work in an iframe-embedded keychain
  • Verify both passkey registration (create) and authentication (get) flows succeed
  • Confirm no regression on direct (non-iframe) passkey usage

🤖 Generated with Claude Code

Passkeys triggered inside an iframe require the server to explicitly
allow the WebAuthn API via the Permissions-Policy header. Without
publickey-credentials-create and publickey-credentials-get, the browser
blocks the WebAuthn call before it reaches the passkey flow.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Mar 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
controller-example-next Ready Ready Preview Mar 10, 2026 8:07pm
keychain Ready Ready Preview Mar 10, 2026 8:07pm
keychain-storybook Ready Ready Preview Mar 10, 2026 8:07pm

Request Review

@Larkooo Larkooo merged commit 380f2f7 into main Mar 10, 2026
12 checks passed
@Larkooo Larkooo deleted the fix/passkey-permissions-policy branch March 10, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants