Browser Security & Isolation
Enforce cross-origin boundaries, Trusted Types, and COOP/COEP isolation.
- Step 1
CORS Preflight and SameSite Cookie Boundaries
Fetch-layer cross-origin read gating via OPTIONS preflight handshakes, paired with SameSite cookie attributes that restrict cross-site credential attachment.
- Step 2
Content Security Policy Nonces and strict-dynamic
HTTP-header script execution allowlist using per-response cryptographic nonces and 'strict-dynamic' trust propagation to block injected scripts without brittle domain allowlists.
- Step 3
DOM XSS Prevention with Trusted Types
Type-enforced browser defense that locks dangerous DOM sinks (innerHTML, eval, script.src) against raw strings, permitting only objects minted by audited TrustedTypePolicy sanitizers.
- Step 4
Cross-Origin Isolation with COOP and COEP
Process-level browser isolation enabled by Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy headers, unlocking SharedArrayBuffer and high-resolution timers by blocking unverified cross-origin bytes.
- Step 5
Web Crypto API and SubtleCrypto
Native C++-backed cryptographic primitives (AES-GCM, SHA-256, ECDSA, HKDF) running off the JS thread in secure contexts with non-extractable CryptoKey handles.