Skip to content

Clarify antiforgery protection behavior around multiple tabs being open #25564

@nbellowe

Description

@nbellowe

Initially I used the "Synchronizer Token Pattern (STP)" pattern described in the docs under "Antiforgery in ASP.NET Core". This led to issues for any users that use my website from multiple tabs, due to STP enforcing page load order (only POST made by the most recently loaded page would work properly).

I think the documentation could be improved by explaining more about this behavior, and recommending that in cases where you don't want to enforce page load ordering, the cookie to header pattern, (also documented but not named) or another CSRF protection pattern, may be suitable. I am happy to make this change myself.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.


Associated WorkItem - 350915

Metadata

Metadata

Assignees

Labels

Source - Docs.msDocs Customer feedback via GitHub Issuedoc-enhancementseQUESTeredIdentifies that an issue has been imported into Quest.

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions