New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Blazor][Wasm] Topic for prerendering and auth #17648
Comments
Duplicate of #17470 and resolved with #17420. Live coverage 👉 https://docs.microsoft.com/en-us/aspnet/core/security/blazor/webassembly/?view=aspnetcore-3.1#support-prerendering-with-authentication |
how to handle api AuthenticationStateProvider in blazor wasm prerender .NET 5 Release Candidate 1 ? and in Blazor WebAssembly prerendering : |
Tnx
` |
Do you have your sample and the solution somewhere available in Github? @MeysamMoghaddam ? |
Content
Steps for supporting auth + prerendering on Blazor applications.
Replace
endpoints.MapFallbackToFile("index.html")
withendpoints.MapFallbackToPage("/_Host")
3. Create a
_Host.cshtml
page inside the pages directory, paste the contents from index.html into it and replace the<app>Loading...</app>
tag with the following:The text was updated successfully, but these errors were encountered: