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

local web server server development doesn't seem to work #33

Open
MitchellMonaghan opened this issue Oct 25, 2020 · 1 comment
Open

Comments

@MitchellMonaghan
Copy link

I have my web application running on http://localhost:8080

I had attempted
this.run = BlazorWebViewHost.Run(this.BlazorWebView, "http://localhost:8080");
OR
this.run = BlazorWebViewHost.Run(this.BlazorWebView, "wwwroot/index.html");
this.BlazorWebView.NavigateToUrl("http://localhost:8080");

I wanted to simply point the webview at my local server as my webapp has hot reloading for fast development, but it seems the web view only serves local files.

@jspuij
Copy link
Owner

jspuij commented Nov 9, 2020

The BlazorWebView does not use a webserver. It serves files through a handler that is attached to the webview. The static files are served with the app.

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

2 participants