❔ I am getting CORS error when I deploy Duende Identity Server but it work fine locally
I get 400 Bad request trying to login on Duende identity server when I deploy it onto a remote server.
When I inspect the logs this is what I see:
Duende.IdentityServer.Hosting.CorsPolicyProvider
| CORS request made for path: /Account/Login from origin: null but was ignored because path was not for an allowed IdentityServer CORS endpoint
What am I missing?
2 Replies
I’m not a CORS expert by any means. I’m not even sure if this is necessary but see if adding your domain to the AllowedCorsOrigin configuration fixes things.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.