Vote page: explicit no-store (the antiforgery write no longer supplies it), handler must match the request, empty Origin counts as present
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
30ba2af3c1
commit
d3a7611f2a
2 changed files with 10 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ public static class CastRequestGuard
|
|||
}
|
||||
|
||||
var origin = request.Headers.Origin;
|
||||
if (origin.Count > 0)
|
||||
if (request.Headers.ContainsKey("Origin"))
|
||||
{
|
||||
return origin.Count == 1 && string.Equals(origin[0], site.GetLeftPart(UriPartial.Authority), StringComparison.Ordinal);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue