0

The title says it all. I'm running asp core app in azure. I'm noticing that Request.Host only returns the subdomain portion.

Can't tell of this is an azure implementation issue or Kestrel or asp core.

For example the following controller running on [mysubdomain].azurewebsites.net

 [Route("busted")]
    public Dictionary<string, object> Index()
    {
        var dict = new Dictionary<string, object>();
        dict.Add("Request.Host", Request.Host);
        return dict;
    }

would return

{ "Request.Host" : "mysubdomain" }

frigon
  • 4,979
  • 7
  • 32
  • 38

1 Answers1

0

I believe the issue was an azure configuration or something because the issue has resolved this morning without code changes.

frigon
  • 4,979
  • 7
  • 32
  • 38