Forum Discussion
sffc-sns
Aug 25, 2020Copper Contributor
AADSTS50011: The reply URL specified in the request doesn't match registered the reply URLs
Is this a common occurrence; does anyone know how to get around this issue? "AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: 'm...
AllTerrainDeveloper
Feb 25, 2021Copper Contributor
Hello sffc-sns
I have exactly the same issue, endpoints are well configured, when using localhost (http and https) it works perfectly, when deploying to production, the webapp can't login even with correct configuration for callback endpoint urls.
Did you found the reason?
- KrinjeckMar 11, 2021Copper Contributor
Have you been able to solve this issue? I'm also seeing the same thing on a test project.
- AllTerrainDeveloperMar 12, 2021Copper Contributor
Yes, Just add:
app.UseForwardedHeaders(new ForwardedHeaderOptions { ForwardedHeaders = ForwardedHeaders.XForwardedProto });