Ok, I have added CORS policy for my dot net core APIs but somehow these CORS policies are not working for identity server 4 endpoints. I have following api where I try to r
This works for the newer version of the server.
services.AddSingleton((container) => {
var logger = container.GetRequiredService>();
return new DefaultCorsPolicyService(logger)
{
AllowAll = true
};
});
more details here at this discussion, with credit to the original author
https://github.com/IdentityServer/IdentityServer4/issues/4685