windows iis 服务器asp,aspx 会话cookie中缺少HttpOnly属性
[ 2023-11-06 11:27:03 | 作者: admin ]
方法一、按照网上打开配置编辑器 ,将httpOnlyCookies设置为true,实际没有任何效果
方法二、通过配置出站规则getcookie添加HttpOnly
在Web.config的system.webServer中添加如下出站规则
阅读全文…
方法二、通过配置出站规则getcookie添加HttpOnly
在Web.config的system.webServer中添加如下出站规则
<rewrite>
<outboundRules>
<rule name="Add HttpOnly" preCondition="No HttpOnly">
...<outboundRules>
<rule name="Add HttpOnly" preCondition="No HttpOnly">
阅读全文…
1