小编use*_*342的帖子

如何在 cookie __RequestVerificationToken_Lw__ 上设置属性 samesite 的值

我在 cshtml 页面上有一个 antirforgery token(@Html.AntiForgeryToken()),它生成一个 cookie RequestVerificationToken_Lw。此 cookie 的属性值为 HTTP 和 Secure。但我还需要设置 SameSite。我如何实现这一目标?

@Html.AntiForgeryToken()

__RequestVerificationToken_Lw__
Run Code Online (Sandbox Code Playgroud)

html token antiforgerytoken samesite

6
推荐指数
1
解决办法
3283
查看次数

标签 统计

antiforgerytoken ×1

html ×1

samesite ×1

token ×1