Replies: 1 comment
-
There are some samples here that show the pattern: https://github.com/dotnet/aspire-samples/tree/main/samples/AspireWithJavaScript |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using Blazor Server with .NET 9 and Aspire 9.1.
I my Blazor Server, i also have Minimal exposed.
there is a Client side JavaScript that needs to call the backend minimal API.
Since Aspire assigns port randomly to minimal api, i am stuck with not able to call my back-end api.
Also since the port number changes, i am also having hard time applying CORS on my backend api.
How can i dynamically send the URL from server for my minimal api to my JavaScript dynamically ?
Beta Was this translation helpful? Give feedback.
All reactions