Web build ships the desktop meta CSP, app fails to start behind proxies that rewrite CSP
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
Research direction
The problem is in the web build output of index.html, where a meta Content-Security-Policy tag is emitted alongside the server's CSP header. Find where the web build injects that tag and separate it from the desktop build, which should keep it. The issue says a fix is already in a linked pull request, but the payload lists none, so check for an existing PR before starting. Done means the web index.html has no CSP meta tag and the desktop build still does.
Written by the indexing model from the issue text.
Description
What happened?
Since 26.11.2 the web/Docker build of index.html contains the desktop <meta http-equiv="Content-Security-Policy"> tag (the one with localhost sources and HTML-escaped quotes, 'self'). The server already sends the full CSP as a header, so on the web the page carries a second, duplicate policy.
Behind a proxy or CDN that adds nonces to CSP headers and meta tags, the entity-escaped meta content gets corrupted (default-src ' self' ;, script-src ' 'nonce-...'). Chromium then reports invalid CSP sources and blocks every script bundle and the web app manifest, so the app doesn't start (blank page).
26.11.1 and earlier had no CSP in the page, so nothing was corrupted.
Steps to reproduce
- Run the Termix server image (26.11.2 or newer).
- Put it behind a proxy or CDN that rewrites CSP headers and meta tags to add nonces.
- Open the web UI in Chromium.
What did you expect?
The app loads. The server image should send the policy only as a header, and only the desktop build (loaded without a server) should carry it as a meta tag.
Termix version
26.11.3 (also 26.11.2)
Platform
Web browser
Server install
Docker
Environment
Web, Chromium. Docker image behind a reverse proxy/CDN that rewrites CSP.
Logs
Browser console: Chromium reports invalid CSP sources for the meta policy and blocks the script bundles and the manifest.
Anything else?
A fix is up in the linked pull request: the web build stops emitting the meta tag; the desktop build keeps it.
- Dominant language
- TypeScript
- Stars
- 16.1k
- Forks
- 776
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 57
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Termix-SSH/Termix
-
bug platform-desktop platform-windows
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Termix-SSH/Termix#1951 · 2 comments ·
Maintainers usually reply within 1 day
-
feature
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Termix-SSH/Termix#1843 · 1 reaction ·
Maintainers usually reply within 1 day
-
bug platform-android
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Termix-SSH/Termix#1829 · 2 comments ·
Maintainers usually reply within 1 day
-
bug platform-windows
Difficulty 3/5 1-2 days Newbie friendliness 52/100
Termix-SSH/Termix#1953 · 1 comment ·
Maintainers usually reply within 1 day
-
Glitchy UIOpenbug needs-info platform-desktop
Difficulty 3/5 1-2 days Newbie friendliness 18/100
Termix-SSH/Termix#1949 · 2 comments ·
Maintainers usually reply within 1 day
All issues in Termix-SSH/Termix
Similar issues
-
[MCP]: page snapshots in .playwright-mcp/ are not git-ignored (.playwright-cli/ is, since #42318)Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
microsoft/playwright#44289 ·
Maintainers usually reply within 1 day
-
good first issue
Difficulty 2/5 Half a day Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
blamechris/chroxy#9272 ·
Maintainers usually reply within 1 day
-
no-repo-link tool-submission
Difficulty 1/5 Under an hour Newbie friendliness 66/100
BraveOPotato/NoSignups#2458 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
drmrd/vernacular#1061 ·
Maintainers usually reply within 1 day