You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Webviews blank over WSL: 401 from service worker when remote authority is "wsl+Ubuntu" (capital letter) #341398
WSLIssue when using WSLbugIssue identified by VS Code Team member as probable bugregressionSomething that used to work is now brokenwebviewWebview issues
The direct vscode-remote-resource request to the server returns 200, so the server and connection token are fine. The resource hostname is lowercased (wsl+ubuntu) while the remote authority is wsl+Ubuntu, so the comparison against allowed resource roots appears to be case-sensitive and denies access.
Workaround: open with a lowercase authority. All webviews then work:
code --remote wsl+ubuntu /home//project
Ruled out: extension versions, VS Code caches, GPU acceleration, reinstalling the VS Code server, proxy (--no-proxy-server), symlinked home/.vscode-server.
Reacted by Saulo, Marek Grabowski, lzielinskiITSA, a1fred0 and Poroburu
I can confirm on the same build. Looks like a regression introduced in 1.141.x.
VS Code: 1.141.1 (commit 7baac39), user installer, x64
OS: Windows 11 + WSL2, distro "Ubuntu", launched with 'code .' from the Ubuntu shell
Webview console shows 401 for every resource:
'markdown.css', 'highlight.css', 'katex.min.css', 'index.css', and 'index.js' from both markdown-language-features and mermaid-markdown-features, served from vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/...
Tried clearing the Windows-side VS Code caches (Service Worker, Cache, Code Cache, GPUCache, CachedData) and a clean profile pointing at an empty temp folder fails the same way
Rolling back to 1.140.0 (commit 07f806f) fixes it.
I can confirm the problem in the same build (1.141.1 7baac39). It looks like it was introduced in commit b0240f4c8e. Running WSL_DISTRO_NAME=ubuntu code . is a functional workaround.
Same fault here: VS Code 1.141.1 (7baac39), Windows 11, WSL2 distro Ubuntu. The Claude Code panel and other webviews were blank, with 401 on index.js and index.css.
The case-sensitive compare is not in the root check. isEqualOrParent ignores case when it compares the authority. The fault is in loadResource in webviewElement, which looks up the remote OS (minified 1.141.1 bundle):
t.authority comes from the resource hostname, which the browser lowercases (wsl+ubuntu). The connection authority is wsl+Ubuntu, so the === is false and remoteOS is undefined. Then the root check returns at once (if (remoteOS === undefined) return;), and loadLocalResource returns AccessDenied, which the webview shows as 401.
A case-insensitive compare at this line (for example, isEqualAuthority) is probably sufficient.
This workaround works for me: code --folder-uri "vscode-remote://wsl+ubuntu/home/<user>".
3. I can confirm the problem in the same build (1.141.1 7baac39). It looks like it was introduced in commit b0240f4c8e. Running WSL_DISTRO_NAME=ubuntu code . is a functional workaround.
WSLIssue when using WSLbugIssue identified by VS Code Team member as probable bugregressionSomething that used to work is now brokenwebviewWebview issues
Activity
jdw-mpls commentedon Oct 13, 2026
I can confirm on the same build. Looks like a regression introduced in 1.141.x.
VS Code: 1.141.1 (commit 7baac39), user installer, x64
OS: Windows 11 + WSL2, distro "Ubuntu", launched with 'code .' from the Ubuntu shell
Webview console shows 401 for every resource:
'markdown.css', 'highlight.css', 'katex.min.css', 'index.css', and 'index.js' from both
markdown-language-featuresandmermaid-markdown-features, served fromvscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/...Tried clearing the Windows-side VS Code caches (Service Worker, Cache, Code Cache, GPUCache, CachedData) and a clean profile pointing at an empty temp folder fails the same way
Rolling back to 1.140.0 (commit 07f806f) fixes it.
saulosag commentedon Oct 13, 2026
I can confirm the problem in the same build (1.141.1 7baac39). It looks like it was introduced in commit b0240f4c8e. Running
WSL_DISTRO_NAME=ubuntu code .is a functional workaround.JoelSimmo commentedon Oct 14, 2026
same as #341431
a1fred0 commentedon Oct 14, 2026
Same fault here: VS Code 1.141.1 (7baac39), Windows 11, WSL2 distro
Ubuntu. The Claude Code panel and other webviews were blank, with 401 onindex.jsandindex.css.The case-sensitive compare is not in the root check.
isEqualOrParentignores case when it compares the authority. The fault is inloadResourceinwebviewElement, which looks up the remote OS (minified 1.141.1 bundle):t.authoritycomes from the resource hostname, which the browser lowercases (wsl+ubuntu). The connection authority iswsl+Ubuntu, so the===is false andremoteOSisundefined. Then the root check returns at once (if (remoteOS === undefined) return;), andloadLocalResourcereturnsAccessDenied, which the webview shows as 401.A case-insensitive compare at this line (for example,
isEqualAuthority) is probably sufficient.This workaround works for me:
code --folder-uri "vscode-remote://wsl+ubuntu/home/<user>".alexr00 commentedon Oct 14, 2026
duplicate of #341396
webview: fix mixed-case remote resource authorities (#341486)
webview: fix mixed-case remote resource authorities (#341488)
webview: fix mixed-case remote resource authorities (#341508)
gdeepakala commentedon Oct 14, 2026
yeah - this works