Skip to content

Commit 380f2f7

Browse files
Larkoooclaude
andauthored
fix: add WebAuthn permissions to Permissions-Policy header (#2482)
## 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](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ba20840 commit 380f2f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/keychain/vercel.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
{
1919
"key": "Permissions-Policy",
20-
"value": "camera=(), microphone=(), geolocation=()"
20+
"value": "camera=(), microphone=(), geolocation=(), publickey-credentials-create=*, publickey-credentials-get=*"
2121
}
2222
]
2323
},

0 commit comments

Comments
 (0)