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

Update Identity+WASM sample #130

Merged
merged 1 commit into from
Dec 5, 2023
Merged

Update Identity+WASM sample #130

merged 1 commit into from
Dec 5, 2023

Conversation

guardrex
Copy link
Collaborator

@guardrex guardrex commented Dec 5, 2023

Per dotnet/AspNetCore.Docs#31205 (comment) ...

This prevents the endpoint from accepting any forms posts. I spoke with our security team, and they indicated JSON-only endpoints that don't accept form auth or form posts don't need XSRF protections (which is why the MapIdentityEndpoints don't use anti-XSRF). The only way the /logout endpoint above works is if you post a JSON payload of {} which becomes an empty object with no properties but is not null. AFAIK this can't be done from a form.

@guardrex guardrex merged commit a0626bf into main Dec 5, 2023
1 check passed
@guardrex guardrex deleted the guardrex-patch-1 branch December 5, 2023 18: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