Header compatibility: CSP / COOP / COEP / frame-ancestors
- Dominant language
- JavaScript
- Stars
- 337
- Forks
- 792
- Avg merge
- 17h 23m
- Merged PRs (30d)
- 49
Description
Summary
Strict security headers (CSP, COOP, COEP, and frame-ancestors) cause Base miniapps to fail when loaded inside the Base Dev wireframe or Coinbase Wallet container.
After manual testing, we found required origins and directives are undocumented, which complicates secure integration.
Observed issues
Area | Problem | Notes
-- | -- | --
frame-ancestors | Base Dev and Base App blocked when 'self' or 'none' | Works only after adding specific Base origins
CSP | SDKs, RPC, and bridge requests blocked | Manual whitelisting required
COOP / COEP | Isolation breaks iframe execution | Container likely not COEP-compatible
Permissions-Policy | Notifications blocked | Need explicit allowlist for Base origins
Requested improvements
-
Add official documentation for required headers and origins.
-
Provide an authoritative list of Base Dev / Base App / SDK / RPC origins.
-
Clarify COOP/COEP support status for Base containers.
-
Include an example “secure but compatible” CSP configuration.
-
Add a short compatibility matrix (Dev vs Prod origins).
Environment
-
Next.js 14 + SSR proxy (k8s + Cloudflare)
-
Full CSP, COOP/COEP enabled
-
SDKs:
@farcaster/miniapp-sdk==^0.2.0,@coinbase/onchainkit==^1.1.1 -
Affected surfaces: Base Dev wireframe, Coinbase Wallet webview
Note: Original issue was enhanced with AI Agent
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.