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

Avoid antiforgery issues #13

Merged
merged 3 commits into from
Mar 20, 2024
Merged

Avoid antiforgery issues #13

merged 3 commits into from
Mar 20, 2024

Conversation

SteveSandersonMS
Copy link
Member

@SteveSandersonMS SteveSandersonMS commented Mar 20, 2024

Should deal with dotnet-smartcomponents/smartcomponents#14

We can't trust antiforgery info to be available due to dotnet/aspnetcore#54533. But also, there never was an objective reason to be validating it anyway - these API calls are no different from other API calls. CSRF is not a concern since the endpoints don't mutate any state.

The change in this PR makes antiforgery validation on SC endpoints something you opt into explicitly.

@SteveSandersonMS SteveSandersonMS merged commit 9232a18 into main Mar 20, 2024
3 checks passed
@SteveSandersonMS SteveSandersonMS deleted the avoid-antiforgery-issues branch March 20, 2024 14:50
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.

1 participant