Hi, I have a problem with logging out from Auth0.
I have pure SPA application at: https://localhost:7230
This application, when logging out, posts request to my backend at: https://localhost:7133
No my backend executes that code:
var authenticationProperties = new AuthenticationProperties();
authenticationProperties.RedirectUri = redirectUri.ToString();
authenticationProperties.IsPersistent = true;
return TypedResults.SignOut(authenticationProperties, [CookieAuthenticationDefaults.AuthenticationScheme, config.ChallengeAuthenticationScheme]);
Next I am getting CORS error in Auth0. This is response from preflight:
I have also added my front address to CORS in Auth0 configuration:
So what’s wrong with that?