You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit eb367de
Browse filesBrowse the repository at this point in the historyBrowse files
fix(demo): unblock Cal.com booking embed and align work-email validation (#5335)
* fix(demo): unblock Cal.com booking embed and align work-email validation
- Exclude /demo from cross-origin isolation headers (COEP credentialless /
COOP same-origin) that degraded the third-party Cal.com booking iframe,
mirroring the existing Google Drive Picker exclusion; the booker no longer
loads under a Storage-Access handshake that often never finished
- Pin the Cal embed theme/layout in the inline config to fix a dark-on-light
theme race; keep cal('ui') to UI-only settings
- Gate the demo form's Continue on the same work-email rule the server
enforces via a shared isFreeEmailDomain helper, bundle-isolated in
lib/messaging/email/free-email.ts so it doesn't bloat other email bundles
- Trim redundant comments in the demo components
* fix(demo): match /demo subroutes in permissive COEP rule
Align the permissive-headers positive match with the strict-COEP negative
lookahead so any future /demo subroute still receives the permissive
COEP/COOP policy instead of falling through to no headers.
* fix(demo): use demo.* in permissive COEP rule (valid route source)
The demo(/.*)? form introduced a nested capturing group, which Next's
path-to-regexp route-source parser rejects ('Capturing groups are not
allowed'), failing the build. demo.* mirrors the strict-rule lookahead's
demo prefix without a nested group, matching the existing w/.* style.
0 commit comments