Skip to content
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

remote support #2772

Closed
akosyakov opened this issue Jun 18, 2021 · 1 comment
Closed

remote support #2772

akosyakov opened this issue Jun 18, 2021 · 1 comment
Labels
question Issue represents a question

Comments

@akosyakov
Copy link

An extension fails to work in remote settings like Gitpod: gitpod-io/gitpod#4513

The issue is that CSP policy hardcoded to use localhost:

<meta http-equiv="Content-Security-Policy" content="default-src 'self'; base-uri 'none'; connect-src 'self' ws://localhost:* ws://127.0.0.1:*; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:;">
But should use webview CSP.

Please see for details: https://code.visualstudio.com/api/advanced-topics/remote-extensions#using-the-webview-api

@tamuratak
Copy link
Contributor

This is intentional. We load viewer/viewer.html as the src of iframe through a local server. We should not use the webview CSP.

We will not support gitpod on our side.

Repository owner locked as resolved and limited conversation to collaborators Jun 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Issue represents a question
Projects
None yet
Development

No branches or pull requests

2 participants