Use preferred allowed origin configuration style for webauthn config (#33953)

pull/2971/head^2
Matt Jankowski 2025-02-18 10:03:43 -05:00 committed by GitHub
parent fbea3a64cc
commit f1d4be1e75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
WebAuthn.configure do |config|
# This value needs to match `window.location.origin` evaluated by
# the User Agent during registration and authentication ceremonies.
config.origin = "#{Rails.configuration.x.use_https ? 'https' : 'http'}://#{Rails.configuration.x.web_domain}"
config.allowed_origins = ["#{Rails.configuration.x.use_https ? 'https' : 'http'}://#{Rails.configuration.x.web_domain}"]
# Relying Party name for display purposes
config.rp_name = 'Mastodon'