Find out if and how you can create passkeys within cross-origin iframes, including current browser compatibility and necessary permissions.
Vincent
Created: April 7, 2025
Updated: August 13, 2025
Discover how to create & login with passkeys in cross-origin iframes with our guide. Learn about iframes in WebAuthn, security policies & implementation.
Read the full articleRead by 5,000+ security leaders.
Yes, creating passkeys within cross-origin iframes is currently possible, but it depends on browser support and specific technical requirements:
To successfully implement passkey creation in cross-origin iframes, you must:
Permissions-Policy
headers:
Permissions-Policy: publickey-credentials-get=(*), publickey-credentials-create=(*)
<CustomBanner type="WhitepaperEnterprise" /> - Ensure transient user activation (user gesture like clicks) to initiate the passkey creation. ## Future Browser Outlook It's not yet clear if Safari and other browsers will eventually support passkey creation in cross-origin contexts in the future. For production environments, always verify browser compatibility and provide fallback flows for unsupported scenarios, especially for Safari users ## Read the full article
Discover how to create & login with passkeys in cross-origin iframes with our guide. Learn about iframes in WebAuthn, security policies & implementation.
Read the full articleRead by 5,000+ security leaders.