阅读SameSite
为防止跨站点伪造而实施的更改。来源:https ://blog.chromium.org/2019/10/developers-get-ready-for-new.html
我正在尝试将其值设置为“无”并Secure
按照宣传的方式使用。
我目前的web.config
设置如下:
<system.web>
<sessionState cookieless="UseCookies"
timeout="20"
cookieSameSite="None"
xdt:Transform="Replace"
xdt:Locator="Match(cookieless)"/>
</system.web>
但我仍然收到以下错误:
A cookie associated with a resource at `mywebsite.net` was set with `SameSite=None` but without `Secure`. A future release of Chrome will only deliver cookies marked `SameSite=None` if they are also marked `Secure`.
如何secure
在上面的 web.config 文件中指定属性?任何线索将不胜感激。