6

When I open a README.md Markdown Preview view in GitHub Codespaces on Google Chrome (as well as e.g. on Chromium-based Brave) I am getting:

Error loading webview: Error: Could not register service workers: NotSupportedError: Failed to register a ServiceWorker for scope ('https://....vscode-cdn.net/insider/.../out/vs/workbench/contrib/webview/browser/pre/') with script ('https://....vscode-cdn.net/insider/.../out/vs/workbench/contrib/webview/browser/pre/service-worker.js?v=4&vscode-resource-base-authority=vscode-resource.vscode-cdn.net&remoteAuthority=codespaces+vorburger-...'): The user denied permission to use Service Worker..

How can I grant permission to use Service Workers to *.github.dev / *.vscode-cdn.net in Chrom/Chromium/Brave?

2 Answers 2

11

I had the same issue in chrome with Eclipse Che using vs code IDE
("Error loading webview: ... The user denied permission to use Service Worker")

fixed by allowing third-party cookies on the site in the browser settings (added an exclusion for the site)

the solution is taken from here

settings from support google com

an example in pictures

2

For GitHub Codespaces, in Firefox, I had to disable "Enhanced Tracking Protection" for the site, and that is all. To do so, click on the shield icon which is to the left of the displayed web address.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.