Skip to content

Commit

Permalink
Add correct deployment URL to origin
Browse files Browse the repository at this point in the history
  • Loading branch information
Regenhardt committed Mar 9, 2023
1 parent c50c77e commit f7ab4cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions BlazorWasmDemo/Server/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@

builder.Services.AddControllersWithViews();
builder.Services.AddRazorPages();
var origin = builder.Configuration["Origin"];
builder.Services.AddFido2(options =>
{
options.ServerDomain = "localhost";
options.ServerDomain = origin;
options.ServerName = "FIDO2 Server";
options.Origins = builder.Configuration["origins"].Split(';').ToHashSet();
options.Origins = new HashSet<string> { origin };
options.TimestampDriftTolerance = 1000;
});
builder.Services.AddSwaggerGen(opts =>
Expand Down
2 changes: 1 addition & 1 deletion BlazorWasmDemo/Server/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
}
},
"AllowedHosts": "*",
"Origins": "https://localhost:7124;https://localhost:5001;https://blazor-webauthn.onrender.com"
"Origin": "https://fido2-blazorwasm.onrender.com"
}

0 comments on commit f7ab4cc

Please sign in to comment.