LOGO OA教程 ERP教程 模切知識交流 PMS教程 CRM教程 開發(fā)文檔 其他文檔  
 
網(wǎng)站管理員

[點晴永久免費OA]Windows Server服務(wù)器IIS管理器被檢測到會話cookie中缺少HttpOnly屬性漏洞,如何解決?

admin
2022年9月26日 10:4 本文熱度 2504

通過配置出站規(guī)則getcookie添加HttpOnly

在網(wǎng)站根目錄下找到文件“Web.config”,在其中添加如下出站規(guī)則:

  1. <rewrite>
  2. <outboundRules>
  3. <rule name="Add HttpOnly">
  4. <match serverVariable="RESPONSE_Set_Cookie" pattern=".*" />
  5. <conditions>
  6. <add input="{R:0}" pattern="; HttpOnly" negate="true" />
  7. </conditions>
  8. <action type="Rewrite" value="{R:0}; HttpOnly" />
  9. </rule>
  10. <rule name="Add Secure">
  11. <match serverVariable="RESPONSE_Set_Cookie" pattern=".*" />
  12. <conditions>
  13. <add input="{R:0}" pattern="; Secure" negate="true" />
  14. </conditions>
  15. <action type="Rewrite" value="{R:0}; Secure" />
  16. </rule>
  17. </outboundRules>
  18. </rewrite>

添加完成后圖示


測試結(jié)果


搞定!


該文章在 2022/9/26 10:04:22 編輯過

全部評論1

admin
2022年9月26日 10:28
rewrite放置位置參考(代碼不是上面的,不要照抄!):
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="root_location_rewrite" stopProcessing="true">
  		<match ignoreCase="false" url="."/>
  		<conditions logicalGrouping="MatchAll">
    		<add ignoreCase="false" input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
    		<add ignoreCase="false" input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
   </conditions>    <action appendQueryString="true" type="Rewrite" url="index.php?{QUERY_STRING}"/>                 </rule>                 <rule name="default_file_rewrite" stopProcessing="true">    <match ignoreCase="false" url="^$"/>    <action appendQueryString="true" type="Rewrite" url="index.php?{QUERY_STRING}"/>    </rule>             </rules>         
</rewrite>     </system.webServer> </configuration>

該評論在 2022/9/26 10:37:31 編輯過
關(guān)鍵字查詢
相關(guān)文章
正在查詢...
點晴ERP是一款針對中小制造業(yè)的專業(yè)生產(chǎn)管理軟件系統(tǒng),系統(tǒng)成熟度和易用性得到了國內(nèi)大量中小企業(yè)的青睞。
點晴PMS碼頭管理系統(tǒng)主要針對港口碼頭集裝箱與散貨日常運作、調(diào)度、堆場、車隊、財務(wù)費用、相關(guān)報表等業(yè)務(wù)管理,結(jié)合碼頭的業(yè)務(wù)特點,圍繞調(diào)度、堆場作業(yè)而開發(fā)的。集技術(shù)的先進性、管理的有效性于一體,是物流碼頭及其他港口類企業(yè)的高效ERP管理信息系統(tǒng)。
點晴WMS倉儲管理系統(tǒng)提供了貨物產(chǎn)品管理,銷售管理,采購管理,倉儲管理,倉庫管理,保質(zhì)期管理,貨位管理,庫位管理,生產(chǎn)管理,WMS管理系統(tǒng),標簽打印,條形碼,二維碼管理,批號管理軟件。
點晴免費OA是一款軟件和通用服務(wù)都免費,不限功能、不限時間、不限用戶的免費OA協(xié)同辦公管理系統(tǒng)。
Copyright 2010-2025 ClickSun All Rights Reserved

黄频国产免费高清视频,久久不卡精品中文字幕一区,激情五月天AV电影在线观看,欧美国产韩国日本一区二区
婷五月亚洲中文 | 香港三级日本三级少妇三级 | 五月综合基地婷婷 | 一级A午夜福利免费区 | 亚洲婷婷久久夜夜亚洲最大 | 在线中文字幕亚洲日韩首页 |