-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fresh copy of code-server 4.98.2 fills the log with Content Security Policy error on Chrome #7285
Comments
Thank you for the logs! Is your server adding any content security policies or is code-server embedded on a page with content security policies? One weird thing that stands out to me is that it seems to be trying to load |
Hello @code-asher. Thanks for your quick reply. I dug into the other
The content-security-policy makes the subpath rejecting the file. Is the handling of subpath under your control, or mine? I can't get rid of that line, cybersecurity policy here. I'll talk to my IT team to see if I can make it more flexible for the code-server instance though. Thanks! |
That sub-path should be under our control. We do some patching to automatically add the sub-path to various parts of VS Code, and we must have missed this one. Edit: although, it could also be a miss on VS Code's side. More investigation needed. |
Cool, thanks for confirming. |
It still occurs in 4.99.1 versions |
Is there an existing issue for this?
OS/Web Information
code-server --version
: 4.98.2 e2c489d with Code 1.98.2Steps to Reproduce
Nginx config:
Expected
Not having the log filled in by error messages.
Seems to work on Firefox, with the logs not filling up.
Actual
Logs in output-window keeps getting filled with the same error:
Logs
see attached trace.log (in notes). code-server --verbose > trace.log [21:07:04] [127.0.0.1][024d80ed][ExtensionHostConnection] Unknown reconnection token (never seen). [21:07:04] [127.0.0.1][400d0ec0][ManagementConnection] Unknown reconnection token (never seen). File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda_bg.wasm File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda.js
Screenshot/Video
Does this bug reproduce in native VS Code?
No, this works as expected in native VS Code
Does this bug reproduce in GitHub Codespaces?
I did not test GitHub Codespaces
Are you accessing code-server over a secure context?
Notes
The text was updated successfully, but these errors were encountered: