Browser Security & Isolation

Enforce cross-origin boundaries, Trusted Types, and COOP/COEP isolation.

5 concepts · 23 min

  1. Step 1Not explored

    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.

  2. Step 2Not explored

    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.

  3. Step 3Not explored

    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.

  4. Step 4Not explored

    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.

  5. Step 5Not explored

    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.