I just realized it is not a cognito issue. The browser receives a 302 status and a location but it is not redirecting. So cognito is doing its part, i just need to figure out the code to force the browser to redirect.
Your call to the Cognito /logout endpoint shouldn't be an XHR request -- the browser needs to be redirected to there. Cognito will then log the user out and redirect them back to the value you provided in redirect_uri.
Not sure if you really want the user to navigate to CNN.com or it is just a sample, if you are trying on the domain where you have access, you can allow the requests from Cognito domain with "Access-Control-Allow-Origin".
Hey @rtt how did you solve this? I am having the exact same redirect issue with a 302, and cors error.
Cognito Hosted UI, using code flow and refresh with an SDK?asked a month ago
Disable hosted UIasked 4 years ago
Cognito Hosted UI TOTP or Amplifyasked 7 months ago
Java Spring Framework + Cognito; Cognito works locally fails with deploymenasked 2 years ago
Cognito Hosted UI to Custom UIAccepted Answerasked 2 years ago
Remember device to suppress MFA challenge using Cognito Hosted UIasked 9 days ago
Cognito Hosted UI Not Always Returning "event_id" with ID + Access Tokenasked 6 months ago
Authorization code flow with custom UI and Cognitoasked 2 months ago
Authorization code flow with custom UI and CognitoAccepted Answerasked 2 years ago
cognito hosted ui logout failing withasked 2 years ago