Skip to content

Document the connect-src requirement for locale files - #4

Merged
alekswebnet merged 2 commits into
mainfrom
docs/pdfjs-viewer-locale-csp
Oct 30, 2026
Merged

alekswebnet merged 2 commits into
mainfrom
docs/pdfjs-viewer-locale-csp

Conversation

@alekswebnet

@alekswebnet alekswebnet commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Pairs with missing-elements/pdfjs-viewer#68, fixed in pdfjs-viewer 4.4.1 (missing-elements/pdfjs-viewer#69): the viewer no longer requests its locale map from a blob: URL, and a locale file that can't be loaded leaves the interface in English instead of blank.

  • Localization: one sentence on connect-src (https://cdn.jsdelivr.net for the default files, 'self' for self-hosted ones) and the English fallback.
  • Migrating: a "From 4.4.0 or earlier" note on dropping connect-src blob:.
  • Bumps @missing-elements/pdfjs-viewer to 4.4.1, so the live preview and the version numbers come from that release.

Validation: pnpm install and npm run build (Eleventy) pass.

🤖 Generated with Claude Code

alekswebnet and others added 2 commits October 30, 2026 15:52
The locale file is the only request the viewer makes for a locale once
pdfjs-viewer 4.4.1 serves the locale map from memory, so a page CSP only
needs the file's origin in connect-src, and a file that can't be loaded
leaves the interface in English. Adds the sentence to Localization and a
migration note for dropping `connect-src blob:`.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The release that serves the locale map from memory, so the live preview
and the version numbers match the Localization and Migrating notes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@alekswebnet
alekswebnet marked this pull request as ready for review October 30, 2026 14:16
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​missing-elements/​pdfjs-viewer@​4.4.0 ⏵ 4.4.180 +110091 +191 +170

View full report

@alekswebnet
alekswebnet merged commit 4b07887 into main Oct 30, 2026
3 checks passed
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.

1 participant