79206906

Date: 2024-11-20 11:09:17
Score: 3
Natty:
Report link

I am answering my own question for people who would face the same issue in future. It is not related about IdentityServer4 configurations or axa-fr/react-oidc library.

Error caused from calling app.UseIdentityServer() in wrong order. I can't tell why this happens but if you call anything before app.UseIdentityServer() it causes this kind of weird problem.

var app = builder.Build();
app.UseIdentityServer(); ->Call this first. 
app.UseStaticFiles();
Reasons:
  • Has code block (-0.5):
  • Me too answer (2.5): face the same issue
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: MonkeyDLuffy