Merge pull request #2749 from basecamp/potential-windows-hello-on-chrome-fix

Use Same-site: Lax
This commit is contained in:
Stanko Krtalić
2026-03-24 15:23:52 +01:00
committed by GitHub
@@ -24,7 +24,7 @@ class ActionPack::Passkey::ChallengesController < ActionController::Base
def create
challenge = create_passkey_challenge
cookies.encrypted[COOKIE_NAME] = { value: challenge, httponly: true, same_site: :strict, secure: !request.local? && request.ssl? }
cookies.encrypted[COOKIE_NAME] = { value: challenge, httponly: true, same_site: :lax, secure: !request.local? && request.ssl? }
render json: { challenge: challenge }
end