Configure ASPNETCORE_URLS for Blazor Wasm #8733
Unanswered
smirkingsquiggly
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm running a Blazor Wasm application and Identity Server with Aspire 9.2.
In order to setup a CORS policy in Identity Server, I'd like to pass the client-side address (ASPNETCORE_URLS env variable) of the Blazor app to Identity Server as an environment variable.
How do I grab the value of ASPNETCORE_URLS from the Blazor app or configure the value?
I've tried to configure it in
launchSettings.json
but it's not being picked up. When running, this env variable has a random port number in it.Beta Was this translation helpful? Give feedback.
All reactions