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

This commit is contained in:
Matt Jankowski authored and GitHub committed 2025-02-18 15:03:43 +00:00
1 parent fbea3a64cc
commit f1d4be1e75
1 file changed
+1 -1
+1 -1
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'