Skip to content

Commit

Permalink
Merge pull request #11 from dotnet/Rick-Anderson-patch-11
Browse files Browse the repository at this point in the history
Rick anderson patch 11
  • Loading branch information
meslubi2021 authored Dec 19, 2024
2 parents 2362ab1 + 0013177 commit 0535d99
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions aspnetcore/security/anti-request-forgery.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,7 @@ Calling <xref:Microsoft.Extensions.DependencyInjection.MvcServiceCollectionExten

## Multiple browser tabs and the Synchronizer Token Pattern

With the Synchronizer Token Pattern, only the most recently loaded page is guaranteed to contain a valid antiforgery token. Apps that wish to support multiple tabs should test supported browsers and log failures. ***Using multiple tabs can be problematic***. For example, if a user opens multiple tabs, requests made from previously loaded tabs might fail with an error: `Antiforgery token validation failed. The antiforgery cookie token and request token do not match`

Consider alternative CSRF protection patterns if this poses an issue.
Multiple tabs with different users is not supported, including a user and anonymous.

## Configure antiforgery with `AntiforgeryOptions`

Expand Down

0 comments on commit 0535d99

Please sign in to comment.