Repository navigation
code-server(latest) has many extensions can not use,when I installed,but show me nothing . #7391
Description
Activity
- addedbugSomething isn't workingSomething isn't workingtriageThis issue needs to be triaged by a maintainerThis issue needs to be triaged by a maintainer
on Jun 22, 2025 - changed the title
[-]code-server(latest) has many extensions can not use,when I installed,but show me noting .[/-][+]code-server(latest) has many extensions can not use,when I installed,but show me nothing .[/+]on Jun 22, 2025 - For
localhost/127.0.0.1HTTP is sufficient - For anything else you need TLS encryption
- This means providing a secure connection over HTTPS
ℹ Use a reverse proxy like Caddy, Nginx, Træfik, etc.
Originally posted by @benz0li in #7168 (comment)
Reacted by Asher and zzytmbld- For
similar for me,
but my versions are:no problem up to 4.100.3,
problem occurs since 4.101.0working case:
problematic case:
check out the error message at the bottom right:
Error loading webview: Error: Could not register service worker: SecurityError: Failed to register a ServiceWorker for scope ('https://dsw-gateway-cn-hangzhou.data.aliyun.com/dsw-1169732/ide/stable-405eb0f511a66e31b5d03767487d57bb62f0c726/static/out/vs/workbench/contrib/webview/browser/pre/') with script ('https://dsw-gateway-cn-hangzhou.data.aliyun.com/dsw-1169732/ide/stable-405eb0f511a66e31b5d03767487d57bb62f0c726/static/out/vs/workbench/contrib/webview/browser/pre/service-worker.js?v=4&vscode-resource-base-authority=vscode-resource.vscode-cdn.net&remoteAuthority=dsw-gateway-cn-hangzhou.data.aliyun.com'): The script resource is behind a redirect, which is disallowed..Affected extensions such as:
Tencent-Cloud.coding-copilot
Alibaba-Cloud.tongyi-lingma
google.geminicodeassist
...
(virtually any one with a standalone panel)Possibly duplicate of #7389
Reacted by zzytmbld- Reacted by vector090 and zzytmbld
But using an insecure context also causes webview issues, and that one we cannot fix, a secure context is required by browsers to use service workers.
That's true, so today I had to add https for my code server at home...
对我来说类似, 但我的版本是:
到 4.100.3 为止没有问题, 从 4.101.0 开始出现问题
工作案例:
有问题的案例:
查看右下角的错误信息:
Error loading webview: Error: Could not register service worker: SecurityError: Failed to register a ServiceWorker for scope ('https://dsw-gateway-cn-hangzhou.data.aliyun.com/dsw-1169732/ide/stable-405eb0f511a66e31b5d03767487d57bb62f0c726/static/out/vs/workbench/contrib/webview/browser/pre/') with script ('https://dsw-gateway-cn-hangzhou.data.aliyun.com/dsw-1169732/ide/stable-405eb0f511a66e31b5d03767487d57bb62f0c726/static/out/vs/workbench/contrib/webview/browser/pre/service-worker.js?v=4&vscode-resource-base-authority=vscode-resource.vscode-cdn.net&remoteAuthority=dsw-gateway-cn-hangzhou.data.aliyun.com'): The script resource is behind a redirect, which is disallowed..受影响的扩展例如: Tencent-Cloud.coding-copilot Alibaba-Cloud.tongyi-lingma google.geminicodeassist ...... (几乎任何一个带有独立面板的扩展)
可能与#7389重复
@zzytmbld please try 4.101.2


Is there an existing issue for this?
OS/Web Information
code-server --version:4.100.3Steps to Reproduce
2.cline extension can not use
a lot of extensions can not use
I do not know why, please help me
when I refresh page ,show me an error
Expected
a lot of extensions can not use
I do not know why, please help me
when I refresh page ,show me an error
Actual
a lot of extensions can not use
I do not know why, please help me
when I refresh page ,show me an error
Logs
Screenshot/Video
No response
Does this bug reproduce in native VS Code?
Yes, this is also broken in native VS Code
Does this bug reproduce in GitHub Codespaces?
Yes, this is also broken in GitHub Codespaces
Are you accessing code-server over a secure context?
Notes
No response