Hi,
i have problems configuring my ASP.NET Blazor app using auth0 with a NGINX reverse-proxy.
I tested the Blazor app on my local machine and everything went well. After deploying it to a docker environment with a nginx reverse-proxy i get the following issues:
I get this prompt that I am connecting to an insecure connection. And after confirming that i ran into the next issue (i assume this issue is following out of the insecure-connection-issue).
var forwardingOptions = new ForwardedHeadersOptions()
{
ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto
};
forwardingOptions.KnownNetworks.Clear(); // Loopback by default, this should be temporary
forwardingOptions.KnownProxies.Clear(); // Update to include
app.UseForwardedHeaders(forwardingOptions);