From b081a8c6347516e7ebe9577f4e40caf3421fe0c6 Mon Sep 17 00:00:00 2001 From: mp-bw <59324545+mp-bw@users.noreply.github.com> Date: Thu, 28 Apr 2022 15:30:33 -0400 Subject: [PATCH] fix a11y issue with hCaptcha on iOS (#1896) --- src/App/Pages/CaptchaProtectedViewModel.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/App/Pages/CaptchaProtectedViewModel.cs b/src/App/Pages/CaptchaProtectedViewModel.cs index d31d338ae..042d1423c 100644 --- a/src/App/Pages/CaptchaProtectedViewModel.cs +++ b/src/App/Pages/CaptchaProtectedViewModel.cs @@ -37,11 +37,14 @@ namespace Bit.App.Pages bool cancelled = false; try { + // PrefersEphemeralWebBrowserSession should be false to allow access to the hCaptcha accessibility + // cookie set in the default browser + // https://www.hcaptcha.com/accessibility var options = new WebAuthenticatorOptions { Url = new Uri(url), CallbackUrl = new Uri(callbackUri), - PrefersEphemeralWebBrowserSession = true, + PrefersEphemeralWebBrowserSession = false, }; authResult = await WebAuthenticator.AuthenticateAsync(options); }