Use preferred allowed origin configuration style for webauthn config (#33953)
parent
fbea3a64cc
commit
f1d4be1e75
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue