This repository was archived by the owner on Dec 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix FormTagHelper to make redudant Antiforgery token registration a no-op #4595
Comments
That just sounds like a bug, this shouldn't throw |
@sebastienros is your repro as simple as the following? <form asp-action="Index">
@Html.AntiforgeryToken()
</form> If not, what else is needed? Head-scratcher: The |
Exactly what I did. |
kichalla
added a commit
that referenced
this issue
May 12, 2016
kichalla
added a commit
that referenced
this issue
May 12, 2016
[Fixes #4595] Better error message with extraneous @Html.AntiforgeryToken
kichalla
added a commit
that referenced
this issue
May 18, 2016
[Fixes #4595] Better error message with extraneous @Html.AntiforgeryToken
kichalla
added a commit
that referenced
this issue
May 20, 2016
[Fixes #4595] Better error message with extraneous @Html.AntiforgeryToken
@kichalla Can you rename this issue so that it shows up better in release notes |
Sure, done. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In a form generated from a tag helper, adding
@Html.AntiforgeryToken()
will result in this cryptic error that doesn't help:The text was updated successfully, but these errors were encountered: