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

blazor wasm opens wrong url #6958

Open
1 task done
davhdavh opened this issue Dec 17, 2024 · 0 comments
Open
1 task done

blazor wasm opens wrong url #6958

davhdavh opened this issue Dec 17, 2024 · 0 comments
Labels
area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication untriaged New issue has not been triaged

Comments

@davhdavh
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When adding a blazor wasm project, aspire will open both the aspire page in 1 browser, and another browser for blazor with wasm debugging support.

However, the port used for the wasm is the randomly generated REAL port https://localhost:50188/, rather than the url from launchSettings.json: https://localhost:7012/.

This makes it impossible to use something like openid authentication that requires a fixed port.

Expected Behavior

the proxy port is used

Steps To Reproduce

create new aspire project, add wasm project, add a counter, set breakpoint in incrementcount.
Launch browser on PROXY url, visit counter page -> no breakpoint
Launch browser on REAL url, visit counter page -> breakpoint ok

Exceptions (if any)

No response

.NET Version info

9.0.100

Anything else?

workaround: add this to aspire project definition:

       .WithEndpoint("https", o=>o.IsProxied=false)
@joperezr joperezr added untriaged New issue has not been triaged area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication labels Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication untriaged New issue has not been triaged
Projects
None yet
Development

No branches or pull requests

2 participants