mirror of
https://github.com/mastodon/mastodon
synced 2025-04-12 00:56:38 +02:00
Use preferred allowed origin configuration style for webauthn config (#33953)
This commit is contained in:
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…
x
Reference in New Issue
Block a user