Title: Fresh copy of code-server 4.98.2 fills the log with Content Security Policy error on Chrome · Issue #7285 · coder/code-server · GitHub
Open Graph Title: Fresh copy of code-server 4.98.2 fills the log with Content Security Policy error on Chrome · Issue #7285 · coder/code-server
X Title: Fresh copy of code-server 4.98.2 fills the log with Content Security Policy error on Chrome · Issue #7285 · coder/code-server
Description: Is there an existing issue for this? I have searched the existing issues OS/Web Information Web Browser: Chrome 134.0.6998.166 arm Local OS: Mac OS Sequoia 15.3.2 (24D81) Remote OS: Ubuntu 22.04.5 Remote Architecture: amd64 code-server -...
Open Graph Description: Is there an existing issue for this? I have searched the existing issues OS/Web Information Web Browser: Chrome 134.0.6998.166 arm Local OS: Mac OS Sequoia 15.3.2 (24D81) Remote OS: Ubuntu 22.04.5 ...
X Description: Is there an existing issue for this? I have searched the existing issues OS/Web Information Web Browser: Chrome 134.0.6998.166 arm Local OS: Mac OS Sequoia 15.3.2 (24D81) Remote OS: Ubuntu 22.04.5 ...
Opengraph URL: https://github.com/coder/code-server/issues/7285
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fresh copy of code-server 4.98.2 fills the log with Content Security Policy error on Chrome","articleBody":"### Is there an existing issue for this?\n\n- [x] I have searched the existing issues\n\n### OS/Web Information\n\n- Web Browser: Chrome 134.0.6998.166 arm\n- Local OS: Mac OS Sequoia 15.3.2 (24D81)\n- Remote OS: Ubuntu 22.04.5\n- Remote Architecture: amd64 \n- `code-server --version`: 4.98.2 e2c489dd00f163b1a8d959965b0c30c1a978a080 with Code 1.98.2\n\n\n### Steps to Reproduce\n\n1. Download the deb from github and install a fresh copy, following the steps described here: \u003chttps://coder.com/docs/code-server/install#debian-ubuntu> (deb, dpkg)\n3. Create a service entry for a dedicated user (not sudoer)\n4. Start service\n5. Set-up nginx reverse proxy (config below)\n6. Log into code-server\n7. Open the \"Output\" tab, and select \"window\" from the dropdown (see below)\n\nNginx config:\n```\nlocation /code-server/ {\n proxy_pass http://localhost:9000/;\n proxy_set_header Host $host;\n proxy_set_header Upgrade $http_upgrade;\n proxy_set_header Connection upgrade;\n proxy_set_header Accept-Encoding gzip;\n }\n[certbot ssl config not reproduced]\n```\n\n### Expected\n\nNot having the log filled in by error messages.\nSeems to work on Firefox, with the logs not filling up.\n\n### Actual\n\nLogs in output-window keeps getting filled with the same error:\n\n```\n2025-03-27 20:40:42.365 [error] [Window] Failed to construct 'Worker': Access to the script at 'blob:https://SERVERNAME/7c4b764f-20dd-4be6-803c-73dd75b171ff' is denied by the document's Content Security Policy.: SecurityError: Failed to construct 'Worker': Access to the script at 'blob:https://SERVERNAME/7c4b764f-20dd-4be6-803c-73dd75b171ff' is denied by the document's Content Security Policy.\n at nls (https://SERVERNAME/code-server/stable-e2c489dd00f163b1a8d959965b0c30c1a978a080/static/out/vs/code/browser/workbench/workbench.js:1262:13907)\n at new lls (https://SERVERNAME/code-server/stable-e2c489dd00f163b1a8d959965b0c30c1a978a080/static/out/vs/code/browser/workbench/workbench.js:1262:15332)\n at Iwi.create (https://SERVERNAME/code-server/stable-e2c489dd00f163b1a8d959965b0c30c1a978a080/static/out/vs/code/browser/workbench/workbench.js:1262:16079)\n at new ils (https://SERVERNAME/code-server/stable-e2c489dd00f163b1a8d959965b0c30c1a978a080/static/out/vs/code/browser/workbench/workbench.js:1262:11441)\n at Z6 (https://SERVERNAME/code-server/stable-e2c489dd00f163b1a8d959965b0c30c1a978a080/static/out/vs/code/browser/workbench/workbench.js:1262:16240)\n at new ant (https://SERVERNAME/code-server/stable-e2c489dd00f163b1a8d959965b0c30c1a978a080/static/out/vs/code/browser/workbench/workbench.js:2552:9618)\n at ont.r (https://SERVERNAME/code-server/stable-e2c489dd00f163b1a8d959965b0c30c1a978a080/static/out/vs/code/browser/workbench/workbench.js:2552:9357)\n at ont.s (https://SERVERNAME/code-server/stable-e2c489dd00f163b1a8d959965b0c30c1a978a080/static/out/vs/code/browser/workbench/workbench.js:2552:9411)\n at Object.provideLinks (https://SERVERNAME/code-server/stable-e2c489dd00f163b1a8d959965b0c30c1a978a080/static/out/vs/code/browser/workbench/workbench.js:2552:9227)\n at https://SERVERNAME/code-server/stable-e2c489dd00f163b1a8d959965b0c30c1a978a080/static/out/vs/code/browser/workbench/workbench.js:479:18336\n``` \n\n### Logs\n\n```shell\nsee attached trace.log (in notes).\n\n\ncode-server --verbose > trace.log\n[21:07:04] [127.0.0.1][024d80ed][ExtensionHostConnection] Unknown reconnection token (never seen).\n[21:07:04] [127.0.0.1][400d0ec0][ManagementConnection] Unknown reconnection token (never seen).\nFile not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda_bg.wasm\nFile not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda.js\n```\n\n### Screenshot/Video\n\n\u003cimg width=\"1382\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/6ce28b57-1ad3-4741-9939-8addc3dc934f\" />\n\n### Does this bug reproduce in native VS Code?\n\nNo, this works as expected in native VS Code\n\n### Does this bug reproduce in GitHub Codespaces?\n\nI did not test GitHub Codespaces\n\n### Are you accessing code-server over a secure context?\n\n- [x] I am using a secure context.\n\n### Notes\n\n\u003c!-- Failed to upload \"trace.log\" -->","author":{"url":"https://github.com/fabgilson","@type":"Person","name":"fabgilson"},"datePublished":"2025-03-27T08:13:29Z","url":"https://github.com/coder/code-server/issues/7285"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2def0509-2678-292d-462b-a49055d448ab |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9824:2E648F:5CB4DF:7DF788:6B044001 |
| html-safe-nonce | de2d4fbc2d7b3b87156e9d0cbede3a353cbce1e11029bb4ddf5c5d81ee24dbb2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODI0OjJFNjQ4Rjo1Q0I0REY6N0RGNzg4OjZCMDQ0MDAxIiwidmlzaXRvcl9pZCI6Ijc4NjU3NTUyODc1MjM5NjY5NzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3499cda15d53603691e8f2b8441d13505373531a8545da69cc0341520a0577d7 |
| hovercard-subject-tag | issue:2952022139 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/code-server/7285/issue_layout |
| twitter:image | https://opengraph.githubassets.com/45eefc0892f47badf07615849bde953aad52cd26e71e94cdb6c77c8b5eb7189b/coder/code-server/issues/7285 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/45eefc0892f47badf07615849bde953aad52cd26e71e94cdb6c77c8b5eb7189b/coder/code-server/issues/7285 |
| og:image:alt | Is there an existing issue for this? I have searched the existing issues OS/Web Information Web Browser: Chrome 134.0.6998.166 arm Local OS: Mac OS Sequoia 15.3.2 (24D81) Remote OS: Ubuntu 22.04.5 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fabgilson |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/code-server git https://github.com/coder/code-server.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 172953845 |
| octolytics-dimension-repository_nwo | coder/code-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 172953845 |
| octolytics-dimension-repository_network_root_nwo | coder/code-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width