FIX: Webauthn origin was incorrect for subfolder setups (#25651)

This commit is contained in:
Penar Musaraj
2024-02-12 16:27:24 -05:00
committed by GitHub
parent 7eb1215cb1
commit 021a02c3d8
7 changed files with 44 additions and 11 deletions

View File

@ -92,10 +92,8 @@ module DiscourseWebauthn
# you might need to change this and the rp_id above
# if you are using a non-default port/hostname locally
"http://localhost:4200"
when "test"
"http://localhost:3000"
else
Discourse.base_url
Discourse.base_url_no_prefix
end
end