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

renovate/aws-sdk-s3-1.x-lockfile
Matt Jankowski 1 week ago committed by GitHub
parent fbea3a64cc
commit f1d4be1e75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -3,7 +3,7 @@
WebAuthn.configure do |config| WebAuthn.configure do |config|
# This value needs to match `window.location.origin` evaluated by # This value needs to match `window.location.origin` evaluated by
# the User Agent during registration and authentication ceremonies. # 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 # Relying Party name for display purposes
config.rp_name = 'Mastodon' config.rp_name = 'Mastodon'

Loading…
Cancel
Save