-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Feature request: Allow localhost access in webview #44695
Comments
Note for http: this is already possible using an iframe inside the webview |
I tried to use a iframe inside the webview but I don't see the webpage I'm serving via localhost.
result: Ignore https reference in screenshot. Changed that to http://localhost:8080 and that also didn't showed the correct result. What am I missing? /Stefan |
This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider. If you wonder what we are up to, please see our roadmap and issue reporting guidelines. Thanks for your understanding and happy coding! |
My bad I needed to enableScripts property of the WebView to get it working. Sorry for not responding earlier. /Stefan |
#44466
I don't think the current API offers any easy way to preview a localhost address.
There are understandable concerns for allowing webview to access any remote server. However, users should be in control of the localhost servers they are running so it's should be fine.
This opens up a lot of possibility for making powerful development tools, because of the easy bi-directional communication between webview and extension host.
The text was updated successfully, but these errors were encountered: