IdentityPasskeyOptions.ValidateOrigin Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a function that validates the origin of the request.
public Func<Microsoft.AspNetCore.Identity.PasskeyOriginValidationContext,System.Threading.Tasks.ValueTask<bool>>? ValidateOrigin { get; set; }
member this.ValidateOrigin : Func<Microsoft.AspNetCore.Identity.PasskeyOriginValidationContext, System.Threading.Tasks.ValueTask<bool>> with get, set
Public Property ValidateOrigin As Func(Of PasskeyOriginValidationContext, ValueTask(Of Boolean))
Property Value
Remarks
This option applies to both creating a new passkey and requesting an existing passkey.
If left null, cross-origin requests are disallowed, and the request is only considered valid if the request's origin header matches the credential's origin.