Change the redirect behaviour so that the the asp.net applcation doesn't attempt to do naughty cors things.

This commit is contained in:
Colin Dawson 2026-03-17 21:10:24 +00:00
parent 3446e7b19f
commit 37de640317

View File

@ -71,7 +71,7 @@ public class AccountController : ESuiteController
{
await _cookieManager.DeleteSsoIdCookie(Response);
var url = await _singleSignOn.StartSingleSignOn(ssoId.Value, cancellationToken);
return Redirect(url);
return Ok(new { redirectTo = url });
}
login ??= new Login();