Browser Blocked Cross-Origin WOFF2 Font (Missing `Access-Control-Allow-Origin`)

CSS `@font-face` fetches always use CORS mode even without `crossorigin` attribute.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.1.0
Identifier: Browser Blocked Cross-Origin WOFF2 Font (Missing `Access-Control-Allow-Origin`) Platform: Web
Common Root Causes:
  • CSS `@font-face` fetches always use CORS mode even without `crossorigin` attribute.

Interactive Diagnostic Checklist

Verified Solutions:
  1. Send `Access-Control-Allow-Origin: *` on font assets or self-host WOFF2 fonts on the same origin.
Safe Diagnostic Command:
curl -sI https://<cdn>/font.woff2 | grep -i access-control
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.

Technical Explanation

CSS `@font-face` fetches always use CORS mode even without `crossorigin` attribute. Recommended diagnostic: `curl -sI https://<cdn>/font.woff2 | grep -i access-control`. Remediation: Send `Access-Control-Allow-Origin: *` on font assets or self-host WOFF2 fonts on the same origin.

Worked Examples

  • Run `curl -sI https://<cdn>/font.woff2 | grep -i access-control` to verify root cause before applying the remediation.

Limitations & Assumptions

  • Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.

Source References & Verification

Resource ID: err-font-cors-woff2-blocked-cdn · Independently verified: 2026-11-25

Related Resources