C
C#11mo ago
mindhardt

✅ Setting app's address (Blazor 8 SSR)

I have created a Blazor 8 wasm+ssr app, but after deployment my redirects broke. The app is hosted on my home server via KeenDNS (Keenetic DNS), apparently it proxies requests in such a way that redirects in ssr end up leading to addresses like http://192.168.1.45/Account/Login which is an internal address of the server in a home network I want to somehow specify the app's address so that it redirects to itself properly. Setting ASPNETCORE_URLS didn't help cuz KeenDNS url is https so asp starts asking for ssl certs that I don't own, they are managed by KeenDNS. Any ideas of how to fix this?
2 Replies
jcotton42
jcotton4211mo ago
shouldn't your redirects be using paths only? ie not using hostnames (idk how blazor is set up tho)
mindhardt
mindhardtOP11mo ago
Wym by that? My question is how to tell Blazor what it's path is, my guess it tries to imply it from requests, but they tell it lies Solved it myself by adding a nginx in front of my app; nginks sets headers that make it work
Want results from more Discord servers?
Add your server