I have a web application(ASP.NET Core MVC) which communicates with my REST API. Both of them are configured to use Azure Active Directory. Now I'm trying to configure Azure Front Door for the app, but I get the following error:
I designed the front door for http-s redirection, configured the backend pool for website to use its own host name.
I've also configured the forwarded headers:
services.Configure<ForwardedHeadersOptions>(options =>
{
options.ForwardedHeaders =
ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto;
options.KnownNetworks.Clear();
options.KnownProxies.Clear();
// Put your front door FQDN here and any other hosts that will send headers you want respected
options.AllowedHosts = new List<string>() { "<my front door here>" };
});
...
app.UseForwardedHeaders();
However still getting the error. Any ideas?
Thanks.