Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Demo/Helpers/RouteHelperExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ public class RedirectToWwwIfPasswordlessDomainRule : IRule
public virtual void ApplyRule(RewriteContext context)
{
var req = context.HttpContext.Request;
if (req.Host.Host is "passwordless.dev" or "fido2.azurewebsites.net")
if (req.Host.Host is "fido2.azurewebsites.net")
{
var wwwHost = new HostString("www.passwordless.dev");
var wwwHost = new HostString("fido2.andersaberg.com");
var newUrl = UriHelper.BuildAbsolute("https", wwwHost, req.PathBase, req.Path, req.QueryString);
var response = context.HttpContext.Response;
response.StatusCode = 301;
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ dotnet add package Fido2.BlazorWebAssembly
### Demo

- **Library website**: https://fido2-net-lib.passwordless.dev
- **Library website**: https://fido2.andersaberg.com
- [Code examples](#examples)

## What is FIDO2?
Expand Down
Loading