Skip to content

fix: drop dead sidebar links, allow https images in CSP - #327

Merged
ety001 merged 2 commits into
nextfrom
fix/sidebar-links-and-csp-img-src
Aug 25, 2026
Merged

fix: drop dead sidebar links, allow https images in CSP#327
ety001 merged 2 commits into
nextfrom
fix/sidebar-links-and-csp-img-src

Conversation

@ety001

@ety001 ety001 commented Aug 25, 2026

Copy link
Copy Markdown
Member

Two small fixes in one PR:

  1. Side panel cleanup — remove SMT Whitepaper / Jobs / Steem Business Center links. The destinations (smt.steem.io, jobs.lever.co/steemit, steemeconomy.com) are no longer maintained. Also removes the unused URL constants and i18n keys (en/zh/es).

  2. CSP img-src fix — avatars (steemitimages.com/u/<user>/avatar) and user-controlled profile_image/cover_image URLs from on-chain metadata were blocked by img-src 'self' blob: data:. Since profile image hosts are arbitrary and cannot be allowlisted by name, follow legacy (helmet imgSrc: "* data:") and allow any https: image. Plain http is still upgraded by upgrade-insecure-requests.

Verified: pnpm type-check, side-panel-links and proxy-csp unit tests (5 cases incl. a new img-src assertion).

ety001 added 2 commits August 26, 2026 00:02
The smt.steem.io, jobs.lever.co/steemit and steemeconomy.com destinations
are no longer maintained. Remove the three external links, their URL
constants and the unused i18n keys (en/zh/es).
Avatars from steemitimages.com and user-controlled profile_image /
cover_image URLs (arbitrary hosts, from chain metadata) were blocked by
img-src 'self'. A host allowlist can never cover user URLs, so follow
legacy (helmet imgSrc '*' data:') and allow any https: image; plain http
is still upgraded by upgrade-insecure-requests.
@ety001
ety001 merged commit 7c90c33 into next Aug 25, 2026
2 of 3 checks passed
@ety001
ety001 deleted the fix/sidebar-links-and-csp-img-src branch August 25, 2026 16:06
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