Hello,
I setup the IdentityServer4 correctly because I have it works with Aurelia application.
XMLHttpRequest cannot load https://xxxxxxx(identityserver)/.well-known/openid-configuration. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access.
never mind, I figured it out. On my IdentityServer, I have to set app.UseCors before app.UseIdenityServer
Thanks for this info.
@pnguyen535 I'm having the same problem, what did you do to solve this?
You can configure it on server side. You have to switch on CORS.
@CallumBrankin Cors has to set before UseIdentityServer()
app.UseCors(options =>
{
});
app.UseIdentity();
app.UseIdentityServer();
Hope it helps.
Thank you @pnguyen535. It works!
glad it works for you
never mind, I figured it out. On my IdentityServer, I have to set app.UseCors before app.UseIdenityServer
You are the best of the best!
Most helpful comment
@CallumBrankin Cors has to set before UseIdentityServer()
app.UseCors(options =>
{
Hope it helps.