#2547·quartz

Broken Google Fonts + `selfHosted` on localhost

Author: cachiusaCreated Sep 6, 2026Updated Sep 13, 2026
Labelsbug

Describe the bug Self hosted fonts are requested with https, even when localhost doesn't support that.

To Reproduce Steps to reproduce the behavior:

  1. Edit config
yaml
configuration:
  baseUrl: "example.com"

plugins:
  - source: "@quartz-community/quartz-fonts"
    enabled: true
    options:
      fontOrigin: selfHosted
      body: Inter
      header: Playfair Display
      code: JetBrains Mono
  1. Run npx quartz build --serve
  2. Open http://localhost:8080 in browser
  3. Fonts won't load with CORS error

Expected behavior Fonts are fetched with no errors

Screenshots and Source

Image

Desktop (please complete the following information):

  • Quartz Version: f1fba3f
  • node Version: v22.23.2
  • npm version: 10.9.8
  • OS: Linux
  • Browser: Firefox

Additional context