Skip to content

Fix Sylva Living World font loading in sandbox - #42

Open
Vaishnavi220506 wants to merge 1 commit into
MengTo:mainfrom
Vaishnavi220506:Vaishnavi220506/fix-sylva-font-cors
Open

Vaishnavi220506 wants to merge 1 commit into
MengTo:mainfrom
Vaishnavi220506:Vaishnavi220506/fix-sylva-font-cors

Conversation

@Vaishnavi220506

Copy link
Copy Markdown

Summary

  • Fixes SylvaLivingWorldScene: bundled font 404s via CORS in its own sandboxed iframe (sourceUrl/assetBaseUrl not exposed) #39 by inlining the Lexend font into SylvaLivingWorldScene, removing the sandboxed iframe's cross-origin font request.
  • Adds a configurable, normalized assetBaseUrl for any remaining relative scene assets while keeping the iframe sandbox at allow-scripts only.
  • Makes the community sync preserve the font and generated fix, with regression coverage.
  • Keeps the existing package checks portable on Windows (POSIX install paths, line-ending-stable snapshots, and npm smoke execution).

Validation

  • npm run build
  • npm run smoke:package
  • npm test (29 passing)
  • npm run typecheck
  • npm run build:site
  • npm run build:lib

The local build and package smoke test pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SylvaLivingWorldScene: bundled font 404s via CORS in its own sandboxed iframe (sourceUrl/assetBaseUrl not exposed)

1 participant