Skip to content

Blazor SSR forms redirect and antiforgery tokens? #48903

@Markz878

Description

@Markz878

Could Blazor team give some insights for these questions our team has been wondering related to Blazor SSR in preview 5?

Q1. How do we do a redirect after a form post? I tried using NavigationManager but it throws a NavigationException. In Razor Pages we return a Redirect IActionResult, is there some corresponding method here?

Q2. Will antiforgery tokens be automatically handled by the framework in form posts? And if not, how should they be handled since there is no @Html.AntiForgeryToken() taghelper?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions