Hi there,
I have an ASP.NET Core application behind a GCP load balancer. I found this thread that seemingly has my same problem, but unfortunately the fixes mentioned in it are not working for me.
I have added ForwardedHeaders in accordance with the Microsoft docs which state they must be implemented before UseHsts()
.
services.Configure<ForwardedHeadersOptions>(options => {
options.ForwardedHeaders = ForwardedHeaders.XForwardedProto;
options.KnownNetworks.Clear();
options.KnownProxies.Clear();
});
app.UseForwardedHeaders();
and the payload has the correct redirect_uri, so I’m really not sure what/where has gone wrong.