Skip to content
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

Use a TagHelperInitializer to set the Antiforgery attribute #840

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

gunndabad
Copy link
Collaborator

We have been using a mix of action + asp-antiforgery=true and trs-action for generating form tags with an anti-forgery attribute. This adds a TagHelperInitializer that defaults Antiforgery to true and removes the now-redundant TrsActionTagHelper.

@gunndabad gunndabad force-pushed the antiforgery-initializer branch from 0bfec26 to 0922a5a Compare September 28, 2023 14:40
@gunndabad gunndabad temporarily deployed to dev_aks September 28, 2023 14:54 — with GitHub Actions Inactive
@gunndabad gunndabad force-pushed the antiforgery-initializer branch from 0922a5a to a7098e7 Compare September 29, 2023 17:10
@gunndabad gunndabad enabled auto-merge (squash) September 29, 2023 17:10
@gunndabad gunndabad temporarily deployed to dev_aks September 29, 2023 17:18 — with GitHub Actions Inactive
@gunndabad gunndabad merged commit 1f809d0 into main Sep 29, 2023
11 checks passed
@gunndabad gunndabad deleted the antiforgery-initializer branch September 29, 2023 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants