public override string GetBaseUrl(IRequest httpReq)
public override string ResolveAbsoluteUrl(string virtualPath, IRequest httpReq)
wont let me override ‘WebHostUrl’ im case of the initial request.
- I’m accesing the api via a port forward.
- I have no default.cshtml
When visiting http://external _url:10001, wich forwards tot the device, it will redirect me to http://localhost:8000/metadata, wich is the original URL the Api is started on. No difference if i setup DefaultRedirectLocation to something in the API, it will just put http://localhost:8000 in front of that then.
The first request i do, returns a 302 StatusCode, with a Location Header to the ‘wrong’ URI.
I just cant find where or how i can override this. I cant use WebHostUrl in HostConfig, because it’s static, and i need it to be request based dynamic.
Can you point me in a right direction?