Skip to content

Commit cae1d51

Browse files
committed
docs: fix deprecated origin with allowed_origins
1 parent b274e12 commit cae1d51

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docs/advanced_configuration.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ Instead of the [Global Configuration](../README.md#configuration) you place in `
2121
relying_party = WebAuthn::RelyingParty.new(
2222
# This value needs to match `window.location.origin` evaluated by
2323
# the User Agent during registration and authentication ceremonies.
24-
origin: "https://admin.example.com",
24+
# Multiple origins can be used when needed. Using more than one will imply you MUST configure rp_id explicitely. If you need your credentials to be bound to a single origin but you have more than one tenant, please see [our Advanced Configuration section](https://github.com/cedarcode/webauthn-ruby/blob/master/docs/advanced_configuration.md) instead of adding multiple origins.
25+
allowed_origins: ["https://admin.example.com"],
2526

2627
# Relying Party name for display purposes
2728
name: "Admin Site for Example Inc."

0 commit comments

Comments
 (0)