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

playground view not accessible in vscode webview #1010

Open
pelikhan opened this issue Jan 15, 2025 · 2 comments
Open

playground view not accessible in vscode webview #1010

pelikhan opened this issue Jan 15, 2025 · 2 comments

Comments

@pelikhan
Copy link
Member

Running a codespace from a browser, the localhost server fails to connect.

Copy link

The issue you're experiencing with the playground view not being accessible in VSCode's WebView when running a Codespace from a browser suggests a potential cross-origin resource sharing (CORS) problem. Ensure that your localhost server is configured to allow requests from the domain where your VSCode instance is running, typically `localhost:8080` or a similar port used for development servers.

If you're using a simple HTTP server command like `python -m SimpleHTTPServer 8080`, it might be insufficient for more complex environments. Consider using something with CORS support, such as:

1. **Install `http-server`:**

npm install http-server -g


2. **Run the server with CORS enabled:**

http-server -p 8080 --cors


If you're facing further challenges, please provide details on your development environment and any error logs for more specific guidance.

AI-generated content by issue-reviewer may be incorrect

@pelikhan
Copy link
Member Author

the websocket needs to connect to the externalurl created by VScode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant